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.
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.
(you will be redirected to DevExpress.com to submit your response)