mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-27 20:27:13 +00:00
Merge pull request #1257 from transloadit/feature/s3-name
s3: Use user provided filename / type for uploaded object, fixes #1238
This commit is contained in:
commit
efc5e7716b
1 changed files with 2 additions and 2 deletions
|
|
@ -70,8 +70,8 @@ module.exports = class AwsS3 extends Plugin {
|
|||
throw new Error('Expected a `serverUrl` option containing a Companion address.')
|
||||
}
|
||||
|
||||
const filename = encodeURIComponent(file.name)
|
||||
const type = encodeURIComponent(file.type)
|
||||
const filename = encodeURIComponent(file.meta.name)
|
||||
const type = encodeURIComponent(file.meta.type)
|
||||
return this.client.get(`s3/params?filename=${filename}&type=${type}`)
|
||||
.then(assertServerError)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue