Forum: Ruby on Rails fastcgi upload - multipart problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fab P. (Guest)
on 2006-03-06 19:49
(Received via mailing list)

   I've got multipart request with 1 file upload form problem.
   I'm using suse 10 basic installation :

       -ruby 1.8.2,
       -rubyfcgi 0.8.6-5,
       -apache 2.0.54,

   When starting whith webrick, my application uploads files
correctly.When using both cgi or fastcgi, browser runs forever with
files greater than 5kb.

   fastcgi log results :

           dispatcher failed to catch: bad content body (EOFError)
           cgi.rb :1021:in 'read_multipart'
           Called from

           my rhtml 1:
              <%= start_form_tag ({:action => 'create'}, {:multipart =>
true}) %>
           my rhtml 2:
              <input type="file" name="myfile">
              def create
                    @data[:mydbfile] =@params[:myfile].read

   fastcgi server timeout extension:
           FastCgiServer dispatch.fcgi path -idle-timeout 120 -processes

   I tried replacing cgi.rb with 1.8.4....Same problem ...
Someone could help me ?

Best regards,
This topic is locked and can not be replied to.