Browse Source

fix double encoding of the upload params (#2220)

Romain Preston 5 years ago
parent
commit
4e1f21ce5f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/@uppy/aws-s3/src/index.js

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

@@ -131,8 +131,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) {