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

Overwriting already uploaded files

3 Answers 170 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Sameer
Top achievements
Rank 1
Sameer asked on 27 Jun 2013, 02:28 AM
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

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Jun 2013, 04:10 AM
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.
0
Sameer
Top achievements
Rank 1
answered on 28 Jun 2013, 08:32 AM
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?
0
Shinu
Top achievements
Rank 2
answered on 28 Jun 2013, 09:11 AM
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.
Tags
AsyncUpload
Asked by
Sameer
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Sameer
Top achievements
Rank 1
Share this question
or