confirm before overwriting

2 posts, 0 answers
  1. Ying
    Ying avatar
    5 posts
    Member since:
    Jun 2010

    Posted 12 Jul 2011 Link to this post

    Is there a way to have a message popup for users to choose whether continue or not before overwriting an existing file?
  2. Alex Fidanov
    Alex Fidanov avatar
    637 posts

    Posted 14 Jul 2011 Link to this post

    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!

Back to Top