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
const ExtractTextPlugin = require('extract-text-webpack-plugin')
module.exports = {
module: {
loaders: [
{
test: /\.js/,
loader: 'babel',
exclude: /node_modules/,
query: {
plugins: ['transform-decorators-legacy'],
{
"signature": /*signed headers string*/
}
{
"headers": /*string to sign*/
}
{
"policy": /*base-64 encoded policy document*/,
"signature": /*signed base-64 encoded policy document*/
}
{
"invalid": true
}
{"x-amz-meta-foo": "bar"}
{
//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
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"
},
$('#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: "mybucket.s3.amazonaws.com",
accessKey: "MY_AWS_PUBLIC_ACCESS_KEY"
},
signature: {
endpoint: "/s3/signtureHandler"
},
uploadSuccess: {