diff --git a/src/main/webapp/js/ossUploader.js b/src/main/webapp/js/ossUploader.js index b85771e..a08cf6e 100644 --- a/src/main/webapp/js/ossUploader.js +++ b/src/main/webapp/js/ossUploader.js @@ -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); diff --git a/src/main/webapp/views/product/coupon.jsp b/src/main/webapp/views/product/coupon.jsp index b615dea..d31463d 100644 --- a/src/main/webapp/views/product/coupon.jsp +++ b/src/main/webapp/views/product/coupon.jsp @@ -81,7 +81,7 @@