We've include this feature into CuteEditor version 5.2.
Demo:
http://cutesoft.net/example/general.aspx
Download:
Renaming images based on the time the file was uploaded
In some situations, the developers need to reename images based on the time the file was uploaded. With Cute Editor, you can easily rename images with a time date stamp the file was uploaded.
The unique identifier used in the generated file name has the following format:
YYYYMMDDHHMMSS+3 Random numbers
Where YYYY, MM, DD is the year, month and day; HH, MM, SS is hours, minutes and seconds.
This feature is turned off by default. But you can turn it on and off by using the following methods:
1: Edit security policy file.
The security policy file (default.config, admin.config and guest.config) can be found in the /CuteEditor/Configuration/Security folder. In security policy file you can find the UseTimeStampRenameUploadedFiles element. By default, it contains the following value:
<security name="UseTimeStampRenameUploadedFiles">true</security>
You can modify the UseTimeStampRenameUploadedFiles element to meet your own requirements.
For example:
<security name="UseTimeStampRenameUploadedFiles">true</security>
2: Programmatically turn UseTimeStampRenameUploadedFiles on and off
C# Example:
Editor1.Setting["security:UseTimeStampRenameUploadedFiles"]= "true";
VB Example:
Editor1.Setting("security:UseTimeStampRenameUploadedFiles")= "true"
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx