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

Uploading Files Fails

Hi

It seems I have a problem with the Upload files tutorial. It works fine for a while and then stops working.

Once I have uploaded the file, I then reference it in the database.

What happens is, everything works perfectly and then for some reason it breaks. Initially the file still uploads but the rest service to add the file url and other data to the database does not fire.

Then after that files do not upload. it seem that the "upload()" jscript function does not fire at all.

I then delete the rest service and the upload.js file and recreate it from scratch. It then works for a while but then breaks again. I have rebuilt it a few times now.

What is causing this to happen for no reason?

Please have a look at the app Crossing BO. It is shared.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Uploading Files Fails

Hello,
We'll check and let you know.

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

Uploading Files Fails

Hi
Any news on this?
Thanks

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Uploading Files Fails

Hi Deon,

Working on it.

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

Uploading Files Fails

Thank you

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Uploading Files Fails

Hello! Your upload button has two handlers: first one calls upload() function, the second one - navigating to page. Delete second handler and make navigation on Success of upload() function.

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

Uploading Files Fails

Thank you. This means you cannot return to complete other handlers.
That explains the problem I have with Invoking a Service and then try to refresh page from the event handler. This fails. How would I then go about executing other commands after invoking a service. Do I have to instead use JS for event handling instead?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Uploading Files Fails

Hello! On Data tab services have events complete, success, error - you can use them or upload through ajax (for example as in upload function) - you can use corresponding methods for object you pass to ajax function.

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

Uploading Files Fails

Aaagh! How obvious was that! Thank you.

Return to “Issues”