waynehoover/s3_direct_upload — pull request #20 by pomartel (2012-12-04 16:02:30+00:00)
Title: Use the s3 xml response to set the file URL to avoid unicode confusion in Chrome

This is a fix for issue #19 where in Chrome, the uploaded file name uses Unicode precomposed characters but the return URL from S3 uses combining characters. This breaks the URL.

After looking more into the issue with the help of @blueimp (https://github.com/blueimp/jQuery-File-Upload/issues/1339), it turns out we can either try to normalize the unicode string before uploading it to S3 or use the URL from the S3 response XML message.

I chose the second option since modifying the filename prior to the upload is not supported by all browsers.