فهرست منبع

remove encodeURIComponent to avoid encoding characters twice (#2033)

yoann-hellopret 5 سال پیش
والد
کامیت
0640a1a56a
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      packages/@uppy/aws-s3/src/index.js

+ 2 - 2
packages/@uppy/aws-s3/src/index.js

@@ -97,8 +97,8 @@ module.exports = class AwsS3 extends Plugin {
       throw new Error('Expected a `companionUrl` option containing a Companion address.')
     }
 
-    const filename = encodeURIComponent(file.meta.name)
-    const type = encodeURIComponent(file.meta.type)
+    const filename = file.meta.name
+    const type = file.meta.type
     const metadata = {}
     this.opts.metaFields.forEach((key) => {
       if (file.meta[key] != null) {