Help Center> Object Storage Service> FAQs> Buckets and Objects> Why Am I Unable to Upload an Object?
Updated on 2024-04-15 GMT+08:00

Why Am I Unable to Upload an Object?

  • Check whether the size or number of objects to be uploaded exceeds what is supported.

    OBS Console puts limits on the size and number of files you can upload.

    • In regions that support batch uploads, a maximum of 100 files can be uploaded at a time, with a total size of no more than 5 GB.
    • In regions that do not support batch uploads, only one file can be uploaded at a time, with a size of no more than 50 MB.

    A single file as large as 5 GB can be uploaded as part of a batch upload. For a single file upload, it cannot exceed 50 MB.

    If a file is larger than 5 GB, you can use OBS Browser+ or obsutil to upload it. Or you can use the OBS SDKs or API to upload the file (up to 48.8 TB) with a multipart upload.

    OBS Browser+ allows you to upload up to 500 files at a time. There is no limit on the number of files you can upload using obsutil at a time.

  • Check whether the network connectivity between the local computer and OBS is normal. If the network is faulty, restore the network connection.
  • If a message indicating "service unavailable" is displayed when objects are being uploaded, try again later.
  • Check whether the account is in arrears or the account balance is insufficient. If this is the case, pay off the outstanding balance or top up the account.
    1. Log in to OBS Console.
    2. On the top navigation menu, click Billing & Costs to go to Billing Center.
    3. On the Overview page, you can view the balance of the account.
    4. If your account is in arrears, top it up by referring to Renewal Management.
    5. If your object upload still fails after the account is brought current, contact customer service.
  • Check whether the account has the permissions required to upload objects. This check should cover the IAM permissions, bucket policies, and bucket ACLs. If the account does not have the required permissions, grant the permissions first.
    1. Log in to the management console.
    2. On the top navigation menu, click the username and select Identity and Access Management to log in to the IAM console and verify the permissions of the user.
      1. On the Users page, search for the username.
      2. Click the username to view details for that user, and check the user groups where the user belongs. If the user is not a member of any user group, click Modify and select a user group.
      3. In the navigation pane, click User Groups and find the user group to which the user belongs. Click the icon of the downward arrow next to the user group name to view user group permissions. Find OBS under the Project Name column and click View under the Operation column, to check whether the user group has the permission required to upload objects. If not, create a user group, configure a policy that grants the user group the object upload permission, and add the user to this group. Alternatively, you can configure a bucket policy to grant the IAM user the permission to upload objects to the bucket. Refer to 3 for more information.
      4. If the account that attempted to upload files is not the owner of the bucket, take the actions described in 3 to check the bucket policy.
    3. On the top navigation menu, click Service List and choose Object Storage Service. On the OBS Console page, check whether the bucket to which the object is to be uploaded prevents users from uploading objects.
      1. In the navigation pane, choose Permissions > Bucket Policy and check whether there is a policy preventing the account or IAM user from uploading objects. If yes, modify the bucket policy to grant the account or IAM user the permission. For details, see Granting Specific Operation Permissions on a Bucket to Other Accounts or Granting an IAM User the Permissions Required to Perform Specific Operations on a Specific Bucket.
      2. Alternatively, you can also use the bucket ACL to grant the account write permissions for the bucket. For details, see Configuring a Bucket ACL.
  • If the fault persists, contact customer service.

Buckets and Objects FAQs

more