control has two parts - client and sever part. And at the moment the client part of the control triggers an upload operation that can only be handled by a RadUploadHandler
on the server. And you can modify the RadUploadHandler
implementation to save the uploaded files in a database rather than in a folder on the server. However, the control doesn't provide a server-side mechanism for calling a popup/window for renaming files.
Basically you can rename the files for upload on the server in the UploadHandler
implementation as I demonstrated in this forum thread
or you can validate the uploaded files on the client side. Please take a look at this tutorial
describing the validation mechanism exposed by the RadUploadItems
. In your case you can handle the Validate event to use a WCF service
to traverse your database tables to see if the file with the same name is already saved in the database. In case it is, you can use the RadWindow
control to Prompt
the user to rename the file and restart the upload operation.
All the best,
the Telerik team