Overwriting already uploaded files

4 posts, 0 answers
  1. Sameer
    Sameer avatar
    20 posts
    Member since:
    Apr 2013

    Posted 26 Jun 2013 Link to this post

    Hi guys

    I am using radasyncupload to upload multiple files to the server. By default how can I overwrite if the selected file is already uploaded in the server? Any help would be great.
    Thanks
    Sameer
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 26 Jun 2013 Link to this post

    Hi Sameer,

    In the case of RadAsyncUpload, if you select a file to upload which is already present in the target folder, then it is automatically overwritten. So you don't need to explicitly write any code to achieve your requirement. But in the case of RadUpload you can allow the control to overwrite existing files in the target directory by setting the OverwriteExistingFiles property to True. The OverwriteExistingFiles property is available for RadUpload only.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sameer
    Sameer avatar
    20 posts
    Member since:
    Apr 2013

    Posted 28 Jun 2013 Link to this post

    Thanks for the nice explannation and that was actually a mistake in my code. I have another query. Why the file upload size is restricted to 2gb? Or is it a default settings and can we override it?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Jun 2013 Link to this post

    Hi Sameer,

    Earlier RadAsyncUpload had a size restriction of 2GB which has been resolved in the latest Q2 2013 release of Telerik RadControls for ASP.NET AJAX. In this latest release the type of the ContentLength properties in the AsyncUpload is changed to Int64 and hence it is capable to handle files with size more than 2GB.

    Thanks,
    Shinu.
Back to Top