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

Upload file is disappearing

2 Answers 146 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Amanda Jackson
Top achievements
Rank 1
Amanda Jackson asked on 28 Jul 2009, 08:15 PM
When I upload a file using radUpload it loads great - then if I work backwards - as some users do - I select a radio button that does ajax update - I am losing the file in the radUpload.  I have set this radUpload.EnableViewState = true.  This doesn't seem to work.  Ideas?  Thanks.

2 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 29 Jul 2009, 06:48 AM
Hello Amanda Jackson,

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. Unfortunately there is no workaround for this issue.

Regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Genady Sergeev
Telerik team
answered on 29 Jul 2009, 07:06 AM
Hi Amanda Jackson,

When there are selected files in the RadUpload and an AJAX postback is triggered the file selected in the RadUpload is lost. The way to work around this issue is to move your RadUpload away from the UpdatePanel that holds the RadioButtons. RadUpload should not be interacted by an AJAX update, otherwise the selection is lost.

Sincerely yours,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
Amanda Jackson
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or