Problem uploading file using ruby 1.9.1 and rails 2.3.3
Posted in Diari, English Linux, Programació, Rails, Ruby on 11/14/2009 01:05 pm by TonHi there
I’m coding an application which has to upload files to the server. I have found an error when the uploaded file is saved in server directory. The message from system is
Status: 500 Internal Server Error
invalid byte sequence in US-ASCII
If you are in the same situation and want to solve it (it’s a rack 1.0.1 gem problem), you have three options:
- Wait for a new rack release.
- Apply the patch (I don’t know where it is).
- Apply manually the solution provided here.
Choose one
M.
12/17/2009 at 10:27 pm
WOW. This was very helpful. Rack 1.0.1 is out and does fix this problem for me. Thank you. (had rack 1.0.1 already for my Ruby 1.8… but my project with Ruby 1.9 was still using the old rack)
This problem is not Rails related, I had the exact same problem with Ruby 1.9.1, Rack 1.0.0 and Ramaze… Just a Rack interface problem with any Ruby 1.9.1 app it seems.
Cheers,
CowboyonRails