Skip to content

DevExpress-Examples/asp-net-mvc-filemanager-allow-users-to-overwrite-an-existing-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileManager for ASP.NET MVC - How to allow users to overwrite an existing file

The File Manager control prevents users from uploading files that already exist on the server. This example demonstrates how to show a conformation dialog that allows users to overwrite an existing file or cancel the upload operation.

Show a Confirmation Dialog

Before the control starts uploading a file, the handler of the client-side FileUploading event checks whether a file with the same name exists on the server. If the server contains the file, a confirmation dialog appears and allows the user to overwrite the file or cancel the upload operation. The hander saves the user choice in a hidden input element.

The handler of the server-side FileUploading event obtains the hidden element's value. If the user chose to overwrite the file, the handler deletes the existing file and starts the upload operation.

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Show a conformation dialog that allows users to overwrite an existing file or cancel the upload operation.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •