Page 1 of 1

Apperyio.FileUploadHelper is not a constructor

Posted: Mon May 02, 2016 12:09 pm
by Leonardo Valentin Zeferino

Hi!

When I test my app, whatever screen I open, the system show me this message at console:

FileUploadHelper.js:1 Uncaught SyntaxError: Unexpected token ILLEGAL
service.js:1383 Uncaught TypeError: Apperyio.FileUploadHelper is not a constructor

When I open the service.js at line 1383, I have this code bellow:

codeCordovaFileUpload = new Apperyio.FileUploadHelper({

Code: Select all

 "serviceName": "CordovaFileUpload", 
 'serviceSettings': FileUpload_settings 

 , 
 'defaultRequest': { 
     "data": { 
         "request_options": { 
             "headers": { 
                 "Connection": "Close", 
                 "X-Appery-Database-Id": "{database_id}", 
                 "X-Appery-Master-Key": "{database_master_key}" 
             } 
         } 
     } 
 } 

});/code

Do you know what can be the problem?

I checked and the FileUpload_settings and all parameters are correct.

Thanks


Apperyio.FileUploadHelper is not a constructor

Posted: Wed May 04, 2016 9:08 am
by Serhii Kulibaba

Hello Leonardo,

Please clarify, how did you create this JS file? With Create new - from plugin?

Did you make any changes in the source view? This (http://devcenter.appery.io/tutorials/...) doc should help.


Apperyio.FileUploadHelper is not a constructor

Posted: Thu May 05, 2016 11:46 am
by Leonardo Valentin Zeferino

Hi!

I think it was a cache issue. Solve it.

Thanks.