Is there a way to have a message popup for users to choose whether continue or not before overwriting an existing file?
1 Answer, 1 is accepted
answered on 14 Jul 2011, 02:34 PM
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.
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!