Search
This topic provides the sample code of Object Storage Service (OSS) SDK for Browser.js in various scenarios.
Source code
For the source code of OSS SDK for Browser.js, visit GitHub.
Sample code
OSS SDK for Browser.js provides a variety of sample code for your reference. The following table lists the sample files.
Sample file | Content |
put(name, file[, options]) | Simple upload |
append(name, file[, options]) | Append upload |
multipartUpload(name, file[, options]) | Multipart upload |
Resumable upload |
get(name[, file, options]) | Range download |
Conditional download |
listV2(query[, options]) | List files |
copy(name, sourceName[, sourceBucket, options]) | Copy files |
putACL(name, acl[, options]) | Manage file access privileges |
copy(name, sourceName[, sourceBucket, options]) | Transform file storage class |
restore(name[, options]) | Restore files |
putMeta(name, meta[, options]) | Manage file metadata |
putSymlink(name, targetName[, options]) | Manage symbolic link |
delete(name[, options]) | Delete files |
put(name, file[, options]) | Manage folder |
References for subsequent operations
Thank you! We've received your feedback.