新增在线查看PDF
This commit is contained in:
@@ -16,7 +16,6 @@ async function uploadFile(file) {
|
||||
// 您可以通过自定义文件名(例如exampleobject.txt)或文件完整路径(例如exampledir/exampleobject.txt)的形式实现将数据上传到当前Bucket或Bucket中的指定目录。
|
||||
// data对象可以自定义为file对象、Blob数据或者OSS Buffer。
|
||||
const options = {
|
||||
headers: {"Content-Type": "text/plain"},
|
||||
};
|
||||
let index = layer.load();
|
||||
const result = await client.put(name, file, options);
|
||||
|
||||
Reference in New Issue
Block a user