How can I prevent a user from uploading two files with the same filename using the asyncupload control?
1 Answer, 1 is accepted
0
Peter Filipov
Telerik team
answered on 18 Apr 2011, 07:29 PM
Hello Corey,
On the client side you can check the file names and if they are the same, make one of them invalid and it will be automatically removed from the temporary folder. Here is some information how RadAsynUpload works:
After you select file(s) from the dialog, RadAsynUpload is uploads them to a temporary folder and gives them unique names. When a postback occurs the files are moved into the target folder with their real names (if there are already files with the same names, they will be replaced). This happens if the TargetFolder property is set otherwise the files stay into the temporary folder. For detailed information please consult with the following help article.