mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-23 02:08:30 +00:00
Fix S3 plugin for browsers without support to responseURL
This commit is contained in:
parent
aeb7970320
commit
65bb56e1e5
1 changed files with 5 additions and 0 deletions
|
|
@ -175,6 +175,11 @@ module.exports = class AwsS3 extends Plugin {
|
|||
return { location: null }
|
||||
}
|
||||
|
||||
// responseURL is not available in older browsers.
|
||||
if (!xhr.responseURL) {
|
||||
return { location: null }
|
||||
}
|
||||
|
||||
// Trim the query string because it's going to be a bunch of presign
|
||||
// parameters for a PUT request—doing a GET request with those will
|
||||
// always result in an error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue