File Upload Problem

works fine with webbrick

but when running through dispatch.cgi or .fcgi it fails with this error:

malformed header from script. Bad header=image/jpeg:

or if using fastcgi:

FastCGI: comm with server “/home/emh/”
aborted: error parsing headers: malformed header ‘image/jpeg’

i repeat, it works fine with webbrick

here is my html:

<%= form_tag({:controller => ‘phocab’, :action => ‘submit_photo’},
{:multipart => true}) %>
<%= select(“photo”, “word_id”, @words) %>

<%= file_field(“photo”, “photo”) %>

<%= submit_tag “submit” %>
<%= end_form_tag %>

any ideas?

i am hosting my site with dreamhost if that helps…

argh, another hour of searching and i discover that fastcgi chokes if
your code has any puts statements…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs