S3 stores the remote-url of the newly stored file in the `Location`-property of the response. Use it as remote-url-param. Fixes https://github.com/transloadit/uppy/issues/1607
@@ -480,7 +480,8 @@ class Uploader {
if (error) {
this.emitError(error)
} else {
- this.emitSuccess(null, {
+ const url = data && data.Location ? data.Location : null;
+ this.emitSuccess(url, {
response: {
responseText: JSON.stringify(data),
headers: {