Important: Make sure CORS is enabled for POST method on your S3 bucket.