jejacks0n/mercury — pull request #184 by mixonic (2012-03-15 06:38:18+00:00)
Title: Safari uploads, closes #37. Please help review.

Wow, what a night!

In Safari, FileReader was dropped in 5.1.something. There is also some problem with multi-part uploads in Safari 5. FileReader looks like it's probably on the way out anyway (in the next few years).

Anyway, this uses FormBuilder and Safari's native binary data ajax posts.

I considered the alternative of just building jQuery-File-Upload into Mercury. Honestly, I think that or plupload would be a great idea instead of rolling something custom. With jQuery-File-Upload, we also get a lightweight way to offer upload forms instead of just the tough-to-discover-and-learn drag and drop.

This is good in Chrome 18, Firefox 11, and Safari 5.1. Please, give it a test in another browser and see if any other version does not work properly.