You can set an HTTP header for one or multiple files on the OSS console. You can set an HTTP header for up to 1,000 files using the batch process on the OSS console. You can also set the HTTP header through the API and SDK.  For information about setting the HTTP header through the API, see CopyObject. For information about setting the HTTP header through the SDK, see CopyObject method in Java SDK-Manage objects

Procedure

  1. Log on to the OSS console .
  2. From the bucket list on the left, click the target bucket to open the overview page of the bucket.
  3. Click Files.
  4. Select one or multiple files, and then click Set HTTP Header.

    You can also click one file name.  On the Preview  page, click Set HTTP Header.

    To set the HTTP header for multiple files, you can select multiple files and click Set HTTP Header.

  5. Enter the values.
    Note
    For more information about each field, see Definitions of common HTTP headers.
  6. Click OK.