Page 1 of 3

Upload File Bad Request Error

Posted: Wed Apr 30, 2014 7:13 am
by Tooba Atif

Hi,

I have followed this tutorial

http://docs.appery.io/tutorials/uploa...

and on png image file upload it gives me error alert and navigate to page as well. Both error and Success are working and file is also uploaded.
This is what I have implemented:
On service error : alert("Bad Request");
On service success : navigate to page xyz

Why it shows the alert "Bad request" if file is uploaded after that. What I am doing wrong?


Upload File Bad Request Error

Posted: Wed Apr 30, 2014 8:04 am
by Kateryna Grynko

Hi Tooba,

Please post a screenshot of Network browser tab.


Upload File Bad Request Error

Posted: Thu May 01, 2014 1:02 am
by Tooba Atif

Hi Katya,

Here is the screenshot..
Image

Here is the code in Data tab.

Image


Upload File Bad Request Error

Posted: Thu May 01, 2014 4:26 am
by Yurii Orishchuk

Hi Tooba.

We have checked this tutorial and it's ok.

So probably you just missed some steps.

Maybe login processing, or mapping sessionToken to the request in filesUploaser service.

So please give us screen shot from NETWORK browser debuger tab. We want to see request parameters and response.

See example:

Request: http://prntscr.com/3f26jq/direct

Response: http://prntscr.com/3f26v1/direct

Regards.


Upload File Bad Request Error

Posted: Thu May 01, 2014 5:04 am
by Tooba Atif

Yurii,
Thanks for your help.
I figured this out its the issue with local token variable and JS validation.
Solved it.
Thanks a lot.


Upload File Bad Request Error

Posted: Wed Aug 13, 2014 2:02 pm
by R2R

I also followed the tutorial to upload file to a database. This function works perfectly for me on PC/Mac browser but it does not work on my iPhone, iOS7. The error I receive is:

Error: Bad request

Is there anything different that has to be done for mobile Safari and other mobile browsers? I've checked the link for File API browser compatibility and mobile Safari 6.1, 7.1, and 8 are compatible.

Thanks!


Upload File Bad Request Error

Posted: Fri Aug 15, 2014 10:39 am
by Evgene Karachevtsev

Hello,

Could you please share your project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us its name? http://docs.appery.io/documentation/s...


Upload File Bad Request Error

Posted: Fri Aug 15, 2014 1:40 pm
by R2R

Hello Evgene,

I've shared the "Life Sciences Video Zone" app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a. Thank you for your help.

Artur


Upload File Bad Request Error

Posted: Mon Aug 18, 2014 3:13 pm
by Evgene Karachevtsev

Hello Artur,

Sorry for delay. Could you please download this file (https://www.dropbox.com/s/byk3e4997fk...) and replace standard file in Source tab with this one? This should help.


Upload File Bad Request Error

Posted: Mon Aug 18, 2014 4:02 pm
by R2R

Thanks for the response, Evgene. Is there are specific folder in the Sources tab where this file needs to be replaced? There are so many (see image below):

Image