Giving the uploaded files unique names
Article Info
Rating: Not rated
|
Article relates to
|
RadEditor for ASP.NET AJAX,
Telerik.Web.UI
|
|
Created by
|
Rumen Zhekov
|
HOW-TO
Give the uploaded files unique names
DESCRIPTION
When a user uploads a file, he can overwrite an existing file by clicking on the "overwrite if file exists" checkbox, without caring about others using that file. It is possible to prevent this problem by assigning the uploaded file an unique name (like a guid).
SOLUTION
Here is a code example based on FileSystemContentProvider that shows how to rename the uploaded images:
Comments
There are no comments yet.
If you'd like to comment on this KB
article, please, send us a
Support Ticket.
Thank you!
Please
Sign In
to rate this article.