How to make RadUpload remember my document after a postback?

Thread is closed for posting
8 posts, 0 answers
  1. Kelly
    Kelly avatar
    55 posts
    Member since:
    Nov 2007

    Posted 06 Oct 2008 Link to this post

    I have a form that is split up into multiple tabs (with a RadTabStrip and a RadMultiView).  for other reasons I have to have a postback when the user switches tabs, and the user can switch tabs and cause several postbacks before the form is saved.

    I have a RadUpload on the 1st tab.  When I browse for a document, then switch tabs, then come back to the 1st tab, the RadUpload is empty as if I never browsed for a document.   I tried a regular asp:FileUpload control and it behaves the same way.

    Is there a way to make it "remember" between postbacks which document I chose? Or am I limited to saving the uploaded document right away with the 1st postback after the user chooses a document?

    Thanks in advance.
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 07 Oct 2008 Link to this post

    Hello Kelly,

    No, this is not possible.
    RadUpload does not support initially selected files or allow file selections to persist across postbacks. This is a security limitation of the standard <input type=file> elements which it uses internally for file selection.

    You can check the Known Limitations article for reference.

    Sincerely yours,
    Veselin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Em4o
    Em4o avatar
    27 posts
    Member since:
    Jun 2010

    Posted 01 Jun 2010 Link to this post

    so there is no way to remember uploaded files ?
    Ok, if I keep files on Session, how server side I can say " Hey Radi, take file values from my Session and remember them on postbacks"
    smnth like

    Dim upFiles As ArrayList = UploadedFiles()

            Dim i As Integer

            For i = 0 To upFiles .Count - 1 Step i + 1

                Dim files As UploadedFile = DirectCast(emo1(i), UploadedFile)

                RadUploader1. --- how to say -  rad upload just display these files are been selected from the user, but now it is postback and remember them


            Next
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 02 Jun 2010 Link to this post

    Hi emin,

    It is not possible to set values to RadUpload/ASP.NET FileUpload or any other upload that relies on the <input type='file' /> tag. You might use label instead to show the user which files have already been uploaded.


    Kind regards,
    Genady Sergeev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Em4o
    Em4o avatar
    27 posts
    Member since:
    Jun 2010

    Posted 02 Jun 2010 Link to this post

    If we user radAjaxmanager  and do partial postbacks or updatePanel
    maybe same issue occurs though?
  7. wk
    wk avatar
    11 posts
    Member since:
    Jan 2010

    Posted 12 Aug 2010 Link to this post

    Hi I have the same issue when RadAjaxManager do partial postback.
  8. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 17 Aug 2010 Link to this post

    Hi guys,

    You can't use RadAjaxManager in collaboration with RadUpload. RadUpload cannot upload files using AJAX calls. This is a limitation of the XmlHttpRequest component, used in all AJAX frameworks for asynchronous calls to the application. In order to upload a file your application must perform a full page postback. Please take a look at the following link for more information on the topic.

    Alternatively, you can take a look at the new RadAsyncUpload which is capable of uploading files using AJAX calls and that can be ajaxified using RadAjaxManager. You can see the async upload in action here.

    Greetings,
    Genady Sergeev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Vasssek
    Vasssek avatar
    143 posts
    Member since:
    Aug 2010

    Posted 29 Aug 2010 Link to this post

    Hello,
    there is a solution how to persist upload file after postback.
    http://ajaxuploader.com/Demo/Persist-upload-file.aspx
    It would be great if sombody shows code snippet how to do this behaviour with telerik radupload
    Thank you.

    Vasssek
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017