Handle a 307 redirect when uploading to s3.