unique filenames

2 posts, 0 answers
  1. Corey
    Corey avatar
    14 posts
    Member since:
    Apr 2011

    Posted 15 Apr 2011 Link to this post

    How can I prevent a user from uploading two files with the same filename using the asyncupload control?
  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 18 Apr 2011 Link to this post

    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.

Back to Top