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

Upload control gets cleared on AJAX postback

1 Answer 71 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sandeep Pulkundwar
Top achievements
Rank 1
Sandeep Pulkundwar asked on 17 Mar 2009, 01:59 PM
hi,

Whenever an ajax postback is fired the file selected in the upload control gets cleared. Like if i select a item from dropdown ajax postback is fired and the upload control gets cleared.

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 18 Mar 2009, 03:16 PM
Hello Sandeep Pulkundwar,

Yes, this is one of the limitations of the RadUpload ( the same limitation applies to the standart file input as well). After a postback the upload fields gets cleared. You need to set the path manually once again. This is due to a security reasons, it is not possible to set the file to upload using JavaScript. Oherwise it would have been a back door for a terrible exploits, like uploading random file from your pc. 
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.
Tags
Upload (Obsolete)
Asked by
Sandeep Pulkundwar
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or