新增在线查看PDF

This commit is contained in:
2025-09-05 14:41:05 +08:00
parent ce095f4b7f
commit 520466e7dd
5 changed files with 43 additions and 12 deletions
-1
View File
@@ -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);