Browser Uploads to S3 using HTML POST Forms with Signature Version 4

I am currently trying to rebuild the browser upload to s3 found here. However, I always get an error saying The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA2...