Rovak/InlineAttachment — pull request #43 by abrom (2014-10-24 02:12:01+00:00)
Title: Extended built in uploadFile function

Added `uploadMethod` for specifying POST/PUT (default POST)
Added `customResponseParser` to allow server responses to come back in different formats (and get handled nicely)
Added `addFileBeforeExtraParameters` property to allow file to be appended after extra parameters
(Amazon S3 has an issue with the `key` not being the first form data element)

So with the above changes, you can use the plugin to upload directly to S3 using something like:
```
return $('.inlineattach').inlineattach({
uploadUrl: 'https://my-bucket.s3.amazonaws.com',
extraParams: {
key: '${filename}',
AWSAccessKeyId: ',
acl: 'public-read', // optional depending on how the S3 buckets are configured
policy: '',
signature: '',
success_action_status: '201'
},
addFileBeforeExtraParameters: false,
});
```

See http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html for examples on how to generate the policy and signature