Closed jarakkal closed 9 years ago
I'm having the exact same issue using python backend. Digging around, not sure what the issue is....
We manage to solve this issue. The current code (mule-uploader.js) will only work for S3 Buckets in the US region. For all other regions (including US), the following needs to be changed.
Line https://github.com/cinely/mule-uploader/blob/master/mule-uploader.js#L1104
self.headers['host'] = "s3.amazonaws.com"; < self.headers['host'] = "bucket-name.s3.amazonaws.com";
Line https://github.com/cinely/mule-uploader/blob/master/mule-uploader.js#L1133
var url = location.protocol + "//s3.amazonaws.com/" + self.settings.auth.bucket + "/" + self.settings.key; < var url = location.protocol + "//" + self.settings.auth.bucket + ".s3.amazonaws.com/" + self.settings.key;
Line https://github.com/cinely/mule-uploader/blob/master/mule-uploader.js#L1191
request += "/" + utils.uriencode(this.settings.auth.bucket) + "/" + utils.uriencode(this.settings.key).replace(/%2F/g, "/") + "\n"; < request += "/" + utils.uriencode(this.settings.key).replace(/%2F/g, "/") + "\n";
Hope this helps, Jento
Please let me know if the latest code fixes this ( see #45 for more details )
When signing using the PHP backend, I am getting this error message.
Response as follows: <?xml version="1.0" encoding="UTF-8"?>
SignatureDoesNotMatch