After a bucket is created, you can upload any type of object to it.
Use the OSS console
To upload an object to an OSS bucket in the OSS console, perform the following steps:
- Log on to the OSS console.
- Click the target bucket.
- New console: Click Buckets, and then click the name of the target bucket.
- Old console: In the left-side navigation pane, click the name of the target bucket.
- Choose .
- In the Upload dialog box that appears, set the following parameters.
Parameter Description Upload To Sets the folder to which objects are uploaded.
- Current: Objects are uploaded to the current folder.
- Specified: Objects are uploaded to the specified folder. You must enter a folder name. If the entered folder does not exist, OSS automatically creates the corresponding folder and uploads the object to the folder.
File ACL Sets the ACL of the object to upload. Default value: Inherited from Bucket.
- Inherited from Bucket: The ACL of each object is the same as that of the bucket.
- Private: Only the bucket owner or authorized users of this bucket can read and write objects in the bucket. Other users, including anonymous users cannot access the objects in the bucket without authorization.
- Public Read: Only the bucket owner can perform write operations on objects in the bucket. Other users, including anonymous users, can perform only read operations on objects in the bucket.
- Public Read/Write: All users, including anonymous users, can read and write objects in the bucket.
For more information about object ACL, see Object ACL.
Upload Drag and drop one or more objects to upload to this section, or click Upload to select one or more objects to upload.Notice
- If the uploaded object has the same name as an existing object in the bucket, the existing object will be overwritten.
- If you upload a folder to OSS, only the files in the folder are uploaded and stored in the same folder as the bucket.
- Do not refresh or close the upload page when objects are being uploaded. Otherwise, the upload tasks are interrupted and the upload object list is cleared.
- After the upload is complete, close the Upload Tasks dialogue box.
ossbrowser is a graphical object management tool for OSS. You can use ossbrowser to upload an object to an OSS bucket. For more information, see Quick start.
ossutil is a command-line tool for OSS. You can use ossutil to upload an object to OSS. For more information, see cp.
Use APIs and SDKsOSS provides APIs and SDKs that use a variety of programming languages to facilitate secondary development. For more information, see the following topics:
- API operation:
- Java SDK: Overview
- Python SDK: Overview
- PHP SDK: Overview
- Go SDK: Overview
- C SDK: Overview
- You can use the OSS console to upload an object up to 5 GB in size.
- You can use ossbrowser and ossutil to upload an object up to 48.8 TB in size.
- When you use Append upload to upload an object, the size of object that can be appended each time and the size of the entire object cannot exceed 5 GB.
- If you use an SDK or API to perform Simple upload and Form upload, the size of the object to upload cannot exceed 5 GB.
- If you use an SDK or API to perform Multipart upload and resumable upload the size of the object to upload cannot exceed 48.8 TB.
What to do next
- Images can be processed in OSS after they are uploaded. For more information, see Image processing.
- Audio or video objects can be processed in OSS after they are uploaded. For more information, see the "Media Processing" section in Cloud data processing.
- After objects are uploaded to OSS, you can use Upload callback to submit a callback request to the specified application server and perform subsequent operations.
- You can also download objects that have been uploaded to OSS as needed. For more information, see Download objects.