s3policy
s3policy copied to clipboard
S3 Upload/Download Policy Generator for Node.js
In calculating the expiration timestamp, the minutes value and the 1 is concatenated (as a string) instead of added arithmetically.
The "expiration" field in the `policy` object of the `writePolicy` function concats a "1" to the month instead of adding. The fix would be to put `dateExp.getUTCMonth() + 1` inside...
modified read policy to wrap in filename in quotes(chrome needs this if there are spaces in the filename or else you will get a duplicate headers error) and took out...
1. Added some content in the README regarding file upload. 2. Added a "acl" parameter to the writePolicy to specify private/public-read/public-read-write PS: This is my first time forking and pulling...
By making the key an optional parameter of readPolicy, we can readPolicy for a bucket too. Very useful to me..
If you pass the readPolicy function a filename(to be added to the header) with any characters that need to be encoded the S3 complains that the signature does not match.