s3policy
s3policy copied to clipboard
writePolicy expiration incorrect month (concats "1" instead of adding)
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 of parenthesis.