Page 1 of 1

Uploading Files Fails

Posted: Tue Jul 23, 2013 9:28 pm
by Deon

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.


Uploading Files Fails

Posted: Tue Jul 23, 2013 9:39 pm
by Igor

Hello,
We'll check and let you know.


Uploading Files Fails

Posted: Wed Jul 24, 2013 5:57 am
by Deon

Hi
Any news on this?
Thanks


Uploading Files Fails

Posted: Wed Jul 24, 2013 7:10 am
by Kateryna Grynko

Hi Deon,

Working on it.


Uploading Files Fails

Posted: Wed Jul 24, 2013 7:12 am
by Deon

Thank you


Uploading Files Fails

Posted: Wed Jul 24, 2013 2:35 pm
by Maryna Brodina

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.


Uploading Files Fails

Posted: Fri Jul 26, 2013 2:52 pm
by Deon

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?


Uploading Files Fails

Posted: Fri Jul 26, 2013 8:07 pm
by Maryna Brodina

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.


Uploading Files Fails

Posted: Sat Jul 27, 2013 3:49 am
by Deon

Aaagh! How obvious was that! Thank you.