mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
Add Content-Type header to presigned url example (#2061)
* Add Content-Type header to presigned url example Prevents the main presigned url example from failing in many cases, as the browser does not assign a content type in many cases, but a content type is required by S3. Based on issue https://github.com/transloadit/uppy/issues/1233 * docs: code style Co-authored-by: Renée Kooi <renee@kooi.me>
This commit is contained in:
parent
4a7fc46aa5
commit
68639c2bb8
1 changed files with 5 additions and 1 deletions
|
|
@ -332,7 +332,11 @@ uppy.use(AwsS3, {
|
|||
return {
|
||||
method: data.method,
|
||||
url: data.url,
|
||||
fields: data.fields
|
||||
fields: data.fields,
|
||||
// Provide content type header required by S3
|
||||
headers: {
|
||||
'Content-Type': file.type
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue