Updated on 2024-07-12 GMT+08:00

Uploading Static Website Files

Prepare all static website files to be uploaded and repeat the following steps on OBS Console until all files are uploaded to the bucket created in Making Preparations.

In regions where batch upload is available, you can upload a maximum of 100 files in a batch, with a total size of no more than 5 GB. If there are a large number of website files, you are advised to use OBS Browser+ to upload them. For details, see Using OBS Browser+ to Upload Files or Folders.

  1. Click the name of the created bucket to go to the Objects page.
  2. Click Upload Object.

    Figure 1 Uploading objects

  3. Add the file to be uploaded.

    • Static website files cannot be encrypted for upload.
    • It is recommended that you select Standard for the storage class. If you store the static website files in the Archive storage class, you need to restore the files before accessing them. For details, see Restoring an Archive File.
    • The website homepage file (index.html) and 404 error page (error.html) must be stored in the root directory of the bucket.

  4. Click Upload to complete the upload.