Hi,
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,
-apache2-mod_fastcgi-2.4.2-4
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
gems/1.8/actionpack-1.11.2/lib/action_controller/cgi_ext/raw_post_data_f
ix.rb:20:initialize_query
my rhtml 1:
<%= start_form_tag ({:action => 'create'}, {:multipart =>
true}) %>
…
my rhtml 2:
…
…
controller:
def create
…
@data[:mydbfile] =@params[:myfile].read
…
fastcgi server timeout extension:
FastCgiServer dispatch.fcgi path -idle-timeout 120 -processes
2
I tried replacing cgi.rb with 1.8.4…Same problem …
Someone could help me ?
Best regards,
Fabian