OSS Browser.js SDK

更新时间:
复制 MD 格式

本文介绍对象存储OSS的Browser.js SDK各种使用场景下的示例代码。

源码地址

请访问GitHub获取源码地址。

示例代码

OSS Browser.js SDK提供丰富的示例代码,方便您参考或直接使用。示例主要包括以下内容:

示例文件

示例内容

put(name, file[, options])

简单上传(Browser.js SDK)

append(name, file[, options])

追加上传(Browser.js SDK)

multipartUpload(name, file[, options])

分片上传(Browser.js SDK)

断点续传上传(Browser.js SDK)

get(name[, file, options])

范围下载(Browser.js SDK)

限定条件下载(Browser.js SDK)

listV2(query[, options])

列举文件(Browser.js SDK)

copy(name, sourceName[, sourceBucket, options])

拷贝文件(Browser.js SDK)

putACL(name, acl[, options])

管理文件访问权限(Browser.js SDK)

copy(name, sourceName[, sourceBucket, options])

转换文件存储类型(Browser.js SDK)

restore(name[, options])

解冻文件(Browser.js SDK)

putMeta(name, meta[, options])

管理文件元数据(Browser.js SDK)

putSymlink(name, targetName[, options])

管理软链接(Browser.js SDK)

delete(name[, options])

删除文件(Browser.js SDK)

put(name, file[, options])

管理目录(Browser.js SDK)

后续参考