Upload without waiting for postback

4 posts, 0 answers
  1. Claus
    Claus avatar
    2 posts
    Member since:
    May 2013

    Posted 22 May 2013 Link to this post

    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

  2. Jay
    Jay avatar
    59 posts
    Member since:
    Dec 2011

    Posted 22 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 22 May 2013 Link to this post

    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.
  5. Claus
    Claus avatar
    2 posts
    Member since:
    May 2013

    Posted 22 May 2013 Link to this post

    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.
Back to Top