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

unique filenames

1 Answer 54 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Corey
Top achievements
Rank 1
Corey asked on 15 Apr 2011, 07:59 PM
How can I prevent a user from uploading two files with the same filename using the asyncupload control?

1 Answer, 1 is accepted

Sort by
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.

All the best,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
AsyncUpload
Asked by
Corey
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or