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

How to make RadUpload remember my document after a postback?

7 Answers 298 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 1
Kelly asked on 06 Oct 2008, 08:18 PM
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.

7 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 07 Oct 2008, 07:50 AM
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.
0
Em4o
Top achievements
Rank 2
answered on 01 Jun 2010, 09:54 AM
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
0
Genady Sergeev
Telerik team
answered on 02 Jun 2010, 12:08 PM
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.
0
Em4o
Top achievements
Rank 2
answered on 02 Jun 2010, 12:16 PM
If we user radAjaxmanager  and do partial postbacks or updatePanel
maybe same issue occurs though?
0
wk
Top achievements
Rank 1
answered on 12 Aug 2010, 11:45 AM
Hi I have the same issue when RadAjaxManager do partial postback.
0
Genady Sergeev
Telerik team
answered on 17 Aug 2010, 12:20 PM
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
0
Vasssek
Top achievements
Rank 1
answered on 29 Aug 2010, 09:58 AM
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
Tags
Upload (Obsolete)
Asked by
Kelly
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Em4o
Top achievements
Rank 2
Genady Sergeev
Telerik team
wk
Top achievements
Rank 1
Vasssek
Top achievements
Rank 1
Share this question
or