This is a migrated thread and some comments may be shown as answers.
confirm before overwriting
1 Answer 13 Views
This is a migrated thread and some comments may be shown as answers.
Ying
Top achievements
Rank 1
Ying asked on 12 Jul 2011, 11:28 PM
Is there a way to have a message popup for users to choose whether continue or not before overwriting an existing file?
Thanks

1 Answer, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 14 Jul 2011, 02:34 PM
Hello Ying,

Currently, before processing the file, the UploadHandler checks if overwriting files is enabled and if the file exists. If needed, it cancels the upload and returns an error to the client. You can override this behavior by overriding the InitializeChunkStorage method. However, I am not sure you will be able to return a message and still continue the upload if needed. You can return a server parameters from the server to the client when the file uploads of fails. Once the file fails, it has to be re-added and re-uploaded.

Best wishes,
Alex Fidanov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Asked by
Ying
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or