i have jquery fine-uploader 5.2.1 configured this
<script type="text/javascript"> $(function() { $('#fineuploader').fineuploaders3({ template: 'qq-template', request: { endpoint: "https://my-bucket.s3.amazonaws.com", accesskey: "my-aws-key", }, signature: { endpoint: "/s3demo-cors.php" }, uploadsuccess: { endpoint: "index.html" }, chunking: { enabled: true, mandatory: true, } }); }); </script>
and have s3demo-cors.php modified these 2 lines only
$clientprivatekey = 'my aws secret key'; $expectedbucketname = "my-bucket";
when examining flow, can see signature getting generated correctly, options request made request made , results in 403 invalidaccesskeyid response amazon.
post /8fbc7973-d054-41aa-a2af-f9c9d29569f0.jpg?uploads http/1.1 host: my-bucket.s3.amazonaws.com connection: keep-alive content-length: 0 x-amz-acl: private origin: https://my-host user-agent: mozilla/5.0 (macintosh; intel mac os x 10_9_5) applewebkit/537.36 (khtml, gecko) chrome/41.0.2272.118 safari/537.36 firephp/4chrome content-type: image/jpeg authorization: aws my-aws-key:signature x-amz-meta-qqfilename: beautiful_scenery-1024x768.jpg x-amz-date: fri, 08 may 2015 15:02:58 gmt accept: */* referer: https://my-host/fineuploader/index.html accept-encoding: gzip, deflate accept-language: en-us,en;q=0.8 x-firephp-version: 0.0.6 x-wf-max-combined-size: 261120
i have following in cors file
<?xml version="1.0" encoding="utf-8"?> <corsconfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <corsrule> <allowedorigin>*</allowedorigin> <allowedmethod>post</allowedmethod> <allowedmethod>put</allowedmethod> <allowedmethod>delete</allowedmethod> <maxageseconds>3000</maxageseconds> <exposeheader>etag</exposeheader> <allowedheader>*</allowedheader> </corsrule> </corsconfiguration>
i stuck @ point , appreciate insights of how can debug further.
thanks!
update 1
also in case helps, single request, these headers requested sign
post image/jpeg x-amz-acl:private x-amz-date:fri, 08 may 2015 15:19:52 gmt x-amz-meta-qqfilename:beautiful_scenery-1024x768.jpg /my-bucket/bedbba49-ae0c-479d-b7a0-663bbd55cc53.jpg?uploads
and these ones sent out
post /bedbba49-ae0c-479d-b7a0-663bbd55cc53.jpg?uploads http/1.1 host: my-bucket.s3.amazonaws.com connection: keep-alive content-length: 0 x-amz-acl: private origin: https://my-host user-agent: mozilla/5.0 (macintosh; intel mac os x 10_9_5) applewebkit/537.36 (khtml, gecko) chrome/41.0.2272.118 safari/537.36 firephp/4chrome content-type: image/jpeg authorization: aws my-key:signature x-amz-meta-qqfilename: beautiful_scenery-1024x768.jpg x-amz-date: fri, 08 may 2015 15:19:52 gmt accept: */* referer: https://my-host/fineuploader/index.html accept-encoding: gzip, deflate accept-language: en-us,en;q=0.8 x-firephp-version: 0.0.6 x-wf-max-combined-size: 261120
Comments
Post a Comment