This was fixed upstream in https://github.com/rails/rails/pull/8276, in Rails 3.2.13 (Mar 18, 2013).
Attach a file by drag & drop or click to upload