This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ExtractTextPlugin = require('extract-text-webpack-plugin') | |
module.exports = { | |
module: { | |
loaders: [ | |
{ | |
test: /\.js/, | |
loader: 'babel', | |
exclude: /node_modules/, | |
query: { | |
plugins: ['transform-decorators-legacy'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"signature": /*signed headers string*/ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"headers": /*string to sign*/ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"policy": /*base-64 encoded policy document*/, | |
"signature": /*signed base-64 encoded policy document*/ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"invalid": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"x-amz-meta-foo": "bar"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#fineUploader').fineUploaderS3({ | |
request: { | |
endpoint: "http://mybucket.s3.amazonaws.com", | |
accessKey: "MY_AWS_PUBLIC_ACCESS_KEY", | |
params: {category: "foobar"} | |
}, | |
signature: { | |
endpoint: "/s3/signtureHandler" | |
}, | |
uploadSuccess: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: { |
NewerOlder