This is a migrated thread and some comments may be shown as answers.

Upload without waiting for postback

3 Answers 66 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Claus
Top achievements
Rank 1
Claus asked on 22 May 2013, 12:17 PM
Hi,

I am testing the radasyncupload - but have run into a small issue.

Is it possible to have the radasyncupload upload files automatically - so it doesn't wait for a postback ?

As it is now files are files first copied from temp files to the correct location when I push a submit button.

Best regards
Claus

3 Answers, 1 is accepted

Sort by
0
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 22 May 2013, 02:09 PM
I believe it requires a postback, but you could use the client-side event OnClientFileUploaded to programatically invoke the postback by e.g. invoking click() on the submit button.
0
msigman
Top achievements
Rank 2
answered on 22 May 2013, 04:56 PM
You can use a RadAjaxManager to AJAXifify the page.  Then, add an AjaxTimer to regularly cause AJAX postbacks.  In the postback you can check if the RadAsynchUploader has any files in the UploadedFiles property.
0
Claus
Top achievements
Rank 1
answered on 22 May 2013, 06:59 PM
Hi,

thanks for the reply :-)

This could be a solution for me - I will be having +10 upload components on one page.

I am not sure if it would give me problems firing AJAX postbacks - if one of the RadAsynchUploaders is still working on copying to the temp location.
Tags
AsyncUpload
Asked by
Claus
Top achievements
Rank 1
Answers by
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
msigman
Top achievements
Rank 2
Claus
Top achievements
Rank 1
Share this question
or