Set the File Name

Last updated:2021-04-28 11:03:42

This function is only applicable for uploading files by calling Put Object request through API and SDK. When this function is enabled, users can customize the names of files uploaded to Kingsoft Cloud. After the upload is successful, the files will be renamed according to the naming rules set by the user. This rule is not applicable to the files uploaded via web pages and Post Object request.

Operation steps:
  1. Enable and disable the service.

微信截图_20200601142144.png

You can set whether to customize the file names by enabling or disabling the service.

  1. Setting for customizing the file names

The file name consists of five fields at most. And at least one field needs to be selected. If more than two fields are selected, a sorting will be made according to the field selection order.

Field rules:
The first field consists of 0-9, a-z and A-Z, with up to 20 characters allowed.

The second field is automatically generated by the system based on the current time, with a format of YYYY-MM-DD HH:MM:SS (where, YYYY—year; MM—month; DD—day; HH—hour; MM—minute; SS—second).

The third field consists of three random numbers. The fourth field is an MD5 check digit automatically generated by the system.

The fifth field is the Sha1 value automatically generated by the system.

Each field is linked by a connector, including: -, _, +, *, /.

For example: The file name generated based on the selections below is: system +20150605120103 +1c9 +f47454d1d3644127f42070181a8b9afc

微信截图_20200601142351.png

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

  • Insufficient
  • Outdated
  • Unclear or awkward
  • Redundant or clumsy
  • Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈