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"