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

Retain Invalid files after postback

3 Answers 58 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Niyati
Top achievements
Rank 1
Niyati asked on 16 Sep 2014, 06:53 AM
I have a scenario where after click on submit button, I need to retain all the files- (valid and invalid). So that user is aware of the invalid files. However, currently only valid files that are successfully uploaded are retained on postback of submit button click. Is there a way where I can retain all the invalid files also after postback??

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 18 Sep 2014, 10:06 PM
Hello,

The RadAsyncUpload  PostbackTriggers property that defines the controls that will post-back and eventually upload all currently listed files to the target folder. In other words if there are two buttons on the page which initiate a post-back and only one of them is defined in the RadAsyncUpload PostbackTriggers only this one will post-back the files and clear the file list.Clicking on the second button will initiate a post-back but will retain the files without moving them to the target folder.

If you need any further assistance please do not hesitate to contact us.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Niyati
Top achievements
Rank 1
answered on 19 Sep 2014, 05:38 AM
Thanks, Boyan.
I am aware of the use of Postback Triggers property.
However, in my case, there is only one button that triggers the postback. On click of that, I am able to retain the valid files. But I also want to retain invalid files that have not passed the validation of size limit or do not match the list valid extensions. Can you please tell me a way in which I can also retain these invalid files along with the valid files? 

Thanks,
Niyati
0
Boyan Dimitrov
Telerik team
answered on 23 Sep 2014, 03:04 PM
Hello Niyati,

Indeed the only the valid files are persisted between post-backs. When a file is listed with a green icon on the left side this means that the file is already in the temp folder. The RadAsyncUpload is designed to retain only the valid files between post-backs since those files exist in the temp folder. Invalid files could not be retained between post-backs.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AsyncUpload
Asked by
Niyati
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Niyati
Top achievements
Rank 1
Share this question
or