Skip to content

Instantly share code, notes, and snippets.

View rnicholus's full-sized avatar
🎸
Searching for Jerry

Ray Nicholus rnicholus

🎸
Searching for Jerry
View GitHub Profile
<AllowedOrigin>http://foo.bar.com</AllowedOrigin>
<AllowedHeader>content-type</AllowedHeader>
<AllowedHeader>origin</AllowedHeader>
<AllowedHeader>x-amz-acl</AllowedHeader>
<AllowedHeader>x-amz-meta-qqfilename</AllowedHeader>
<AllowedHeader>x-amz-date</AllowedHeader>
<AllowedHeader>authorization</AllowedHeader>
<AllowedHeader>x-amz-meta-foo</AllowedHeader>
<AllowedHeader>x-amz-meta-bar</AllowedHeader>
{
"Version":"2012-10-17",
"Statement":[{
"Effect":"Allow",
"Action":"s3:PutObject",
"Resource":"arn:aws:s3:::fineuploadertest/*"
}]
}
$('#fineUploader').fineUploaderS3({
request: {
endpoint: "mybucket.s3.amazonaws.com",
accessKey: "MY_AWS_PUBLIC_ACCESS_KEY"
},
signature: {
endpoint: "/s3/signtureHandler"
},
uploadSuccess: {
endpoint: "success.html"
var uploader = new qq.s3.FineUploader({
element: document.getElementById("fineUploader"),
request: {
endpoint: "mybucket.s3.amazonaws.com",
accessKey: "MY_AWS_PUBLIC_ACCESS_KEY"
},
signature: {
endpoint: "/s3/signtureHandler"
},
uploadSuccess: {
$('#fineUploader').fineUploaderS3({
request: {
endpoint: "http://mybucket.s3.amazonaws.com",
accessKey: "MY_AWS_PUBLIC_ACCESS_KEY",
params: {category: "foobar"}
},
signature: {
endpoint: "/s3/signtureHandler"
},
uploadSuccess: {
var uploader = new qq.s3.FineUploader({
element: document.getElementById("fineUploader"),
request: {
endpoint: "http://mybucket.s3.amazonaws.com",
accessKey: "MY_AWS_PUBLIC_ACCESS_KEY",
params: {category: "foobar"}
},
signature: {
endpoint: "/s3/signtureHandler"
},
{
//always included
"expiration": //the expiration date of the policy, set to be 5 minutes from now, in <a href="http://www.w3.org/TR/NOTE-datetime">ISO 8601 format</a>,
"conditions":
[
//always included
{"acl": /*the "canned acl" value, specified in the objectProperties.acl option*/},
//always included