cancel
Showing results for 
Search instead for 
Did you mean: 

Angular - Unable to read file after upload file with nuxeo-js-client - [SOLVED]

freemann_
Star Contributor
Star Contributor

Hi, After uploading file (JavaScript File) through my service using nuxeo-js-client, I have this error on nuxeo server's document preview and in adobe reader (see attached) :

PDF.js v1.5.188 (identifiant de compilation : 0e2d50f)
Message : Invalid PDF structure

How can I avoid this issue ?

Thanks for help

1 ACCEPTED ANSWER

freemann_
Star Contributor
Star Contributor

Hi Thomas,

The thing is, I changed the file input to 'ng-file-model' module for 'angular-file-model' module and this last seems conserve file as a JavaScript File where the ng-file-model module transforms the file I guess. I give you more about the problem if it appears again.

View answer in original post

3 REPLIES 3

Thomas_Roger
Star Contributor
Star Contributor

> How can I avoid this issue ?

freemann_
Star Contributor
Star Contributor

Hi Thomas,

The thing is, I changed the file input to 'ng-file-model' module for 'angular-file-model' module and this last seems conserve file as a JavaScript File where the ng-file-model module transforms the file I guess. I give you more about the problem if it appears again.

freemann_
Star Contributor
Star Contributor

Hi Thomas,

This issue is solved by using angular-file-model module.

Thx

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.