Updated on 2023-06-05 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.

  1. Click the name of the created bucket to go to the Objects page.
  2. Click Upload Object. A dialog box shown in Figure 1 is displayed.

    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.