Set the name of a file

Last updated:2021-10-18 16:00:50

When this feature is enabled, you can customize naming rules to rename objects that are uploaded to Kingsoft Cloud Standard Storage Service (KS3). After an object is uploaded, it is renamed based on the naming rule that you customize.

For more information about how to customize naming rules in the KS3 console, see Set object names.

This feature is applicable only when you upload a single object by calling an API operation, using an SDK, or in the console. This feature is inapplicable when you upload an object in multiple parts.

Naming rules

An object name contains one to five fields. If multiple fields are selected, you must sort the fields.

Field rules:

  • The value of the first field must be 1 to 20 characters in length, and can contain digits (0 to 9), lowercase letters (a to z), and uppercase letters (A to Z).
  • The value of the second field is automatically generated by the system based on the current time, in the format of YYYY-MM-DD HH:MM:SS or YYYYMMDDHHMMSS.
  • The value of the third field consists of three random digits.
  • The value of the fourth field consists of the MD5 check bits automatically generated by the system.
  • The value of the fifth field is the SHA1 value automatically generated by the system.
  • Multiple fields must be connected by using hyphens(-), underscores (_), plus signs (+), asterisks (*), or forward slashes (/).


The object name generated based on the following settings is aaa-yyyyMMddHHmmss-three random digits-MD5 check bits-SHA1 value.


Did you find the above information helpful?

Mostly Unhelpful
A little helpful
Very helpful

What might be the problems?

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

More suggestions


Please give us your feedback.


Thank you for your feedback.