All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

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.

Note: 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 (\/).

Example

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

image.png

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback