After a bucket is created, you can upload any type of object (file) to it.

Prerequisite

A bucket is created. For more information, see Create a bucket.

Background information

You can upload an object in any of the following ways:

  • Use the OSS console to upload an object smaller than 5 GB. See the following steps.
  • Use SDKs or APIs to upload an object larger than 5 GB. For more information, see Multipart upload.
  • Use the graphical management tool ossbrowser to upload an object. For more information, see ossbrowser.

Procedure

  1. Log on to the OSS console.
  2. In the bucket name list, click the name of the bucket that you want to upload a file to.
  3. Click the Files tab.
  4. Click Upload.
  5. In the Directory Address box, set the directory where the file is uploaded.
    • Current Directory: If you select this option, the file will be uploaded to the current directory.
    • Specify Directory: If you select this option, you must specify a directory, and OSS will automatically create the corresponding folder and upload the file to the folder.
      Note
      For more information about a folder, see Create a folder.
  6. In the File ACL area, select the read/write permission of the file to be uploaded. By default, a file inherits the read/write permission of the bucket where it belongs.
  7. In the Upload area, drag the file to be uploaded to this area, or click upload them directly to select the file to be uploaded.
    The Upload Task dialog box is displayed, indicating the upload progress. You can also see the upload progress by clicking Upload Task at the bottom left.
    Note
    If the uploaded file has the same name as the existing file in the bucket, the existing file will be overwritten.