All Products
Search
Document Center

Object Storage Service:Upload files (Browser.js SDK)

Last Updated:Nov 29, 2025

The OSS Browser.js SDK provides multiple methods to upload files (objects). You can select the method that best fits your scenario.

Method

Description

Simple upload (Browser.js SDK)

  • Use simple upload to upload File objects, BLOB data, or OSS Buffer to OSS.

  • This method is ideal for fast uploads of small files.

Append upload (Browser.js SDK)

  • Use append upload to add content to the end of an existing appendable object.

Multipart upload (Browser.js SDK)

  • Use multipart upload for large files between 100 MB and 48.8 TB.

  • This method splits the file into multiple parts that are uploaded independently. After all parts are uploaded, call the CompleteMultipartUpload operation to combine them into a single object.

Resumable upload (Browser.js SDK)

  • Use resumable upload for stable uploads of large files.

  • This method records upload breakpoints. If a network error or a program crash interrupts the upload, you can resume the upload from the last successful breakpoint.

Upload callback (Browser.js SDK)

  • Use upload callback to send a callback to an application server after a file is successfully uploaded.

  • This lets you perform specific actions after a successful upload, such as writing logs or triggering other processes.