Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Cant upload files with Upload plugin

Hi

I use the file upload button all the time without a problem. On this app I am busy with no it does not work.

I have double checked my fileupload settings service. Db_Id and masterkey is 100% correct.

The camera works fine but as soon as I upload i get this error.

An error has occured: Code = 1 + Upload error source file:///storage/emulated/0/Android/data/appery.io.tester/cache/1444454.jpg upload err target https://api.appery.io/rest/1/db/files

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Cant upload files with Upload plugin

Hi Deon -

What exact Upload plugin implementation are you using, could you please specify the link to a sample?

Are you testing this on a device? If yes, we need more info about device and platform version.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Cant upload files with Upload plugin

Hi Illya

it is your standard "Upload file to database" plugin available in your catelog of Appery.io plugins. I am using the Cordova Fileupload option.

I have now created a new page and it is working 100% on that page in the same app but it will not work on the page I need it to work on. It seems that there is a problem with the page itself causing this failure. Some form of corruption?

I am Testing on both Android and IOS. It seems the error is generated by the fileuploadhelp.js file.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Cant upload files with Upload plugin

Please run this app on the device directly (as a native app) and enable weinre for that. After that please check weinre console for errors.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Cant upload files with Upload plugin

No errors.

What is strange is that the page that is shipped with the plugin works fine.
I have created a new test page and compared with the cordova upload page and cannot see the difference at all.The cordova upload page that gets installed when installing the plugin works fine but my test page does not.

I use the same services exact same mappings. I changed DestinationType in the camera service to FileURI but still fails.

This is so weird.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Cant upload files with Upload plugin

Please share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Test credentials if login functionality is implemented in your app
3) Detailed steps to reproduce the issue

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Cant upload files with Upload plugin

Hi

It is shared with support

  1. App Name: sendEDDY
  2. No credentials required
  3. You will land on the Cordova Upload Page. (your plugin) This works fine.
    a. Click the button called Details at the top of page.
    b. Scroll down and click the Camera Icon.
    c. take a photo
    d. Click the Submit button in footer to submit. (You can enter other data if you want.) This does not have an effect on the upload of the image.
Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Cant upload files with Upload plugin

Any news, please.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Cant upload files with Upload plugin

Please use "webupload" page for uploading files from the browser and "cordovaupload" - for uploading files from mobile device. It works fine on our PCs

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Cant upload files with Upload plugin

Hi Segiy

That is NOT a solution to what is clearly a BUG. Please read the problem clearly. I am tired of having to repeat myself.

Return to “Issues”