Hi,
I''m having a big problem with stoped uploads killing my app.
I simply have a restfull controller and as follows, my view and models
are:
View new.html.erb:
<h3>New Image</h3>
<%= error_messages_for :image %>
<% form_for(:image, :url => collection_url, :html => {:multipart =>
true}) do |f| %>
  <p>
  <%= label :image, :name, "Name", :class => "aligned"
%>
  <%= f.text_field :name %><br/>
  <%= label :image, :file_data, "Localização" , :class =>
"aligned"%>
  Maximum Size: 2.5MB / Only: GIF or JPG<br/>
  <%= file_column_field "image", "file_data"
%><br/>
  </p>
  <%= submit_tag "Save", :class => "button" %>
<% end %>
<%= cancel %>
Model image.erb:
class Image < ActiveRecord::Base
   belongs_to :image, :polymorphic => true
   validates_presence_of :file_data
   validates_file_format_of :file_data, :in => ["gif",
"jpg"]
   validates_filesize_of :file_data, :in => 1.kilobytes..3000.kilobytes
   file_column :file_data, :magick => {:geometry =>
"640x480>",
:versions => { "thumb" => "80x", "medium"
=> "180x" }}
end
I''m using file_column plugin as you can see.
Deploying this on my server in production I get  the following error
when some user cancels the upload:
Processing ImagesController#new (for ------ at 2008-06-30 03:19:52)
[GET]
  Session ID: ----
  Parameters: {"catalog_id"=>"1",
"action"=>"new",
"catalog_item_id"=>"65",
"controller"=>"superuser/images"}
Rendering template within layouts/application
Rendering images/new
Completed in 0.17773 (5 reqs/sec) | Rendering: 0.17347 (97%) | DB:
0.00000 (0%) | 200 OK [http://my_server/images/new]
/!\ FAILSAFE /!\  Mon Jun 30 04:21:51 -0700 2008
  Status: 500 Internal Server Error
  bad content body
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:548:in
`read_multipart''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:517:in
`loop''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:517:in
`read_multipart''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:445:in
`parse_multipart_form_parameters''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:383:in
`parse_formatted_request_parameters''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:78:in
`request_parameters''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:287:in
`parameters''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:22:in
`request_method''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:35:in
`method''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/routing.rb:1483:in
`extract_request_environment''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/routing.rb:1424:in
`recognize''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:170:in
`handle_request''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
`dispatch''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in
`dispatch_cgi''
   
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
`dispatch''
   
/usr/lib/ruby/gems/1.8/gems/passenger-1.0.5/lib/passenger/request_handler.rb:304:in
`process_request''
   
/usr/lib/ruby/gems/1.8/gems/passenger-1.0.5/lib/passenger/request_handler.rb:180:in
`main_loop''
   
/usr/lib/ruby/gems/1.8/gems/passenger-1.0.5/lib/passenger/application_spawner.rb:320:in
`start_request_handler''
   
/usr/lib/ruby/gems/1.8/gems/passenger-1.0.5/lib/passenger/application_spawner.rb:282:in
`handle_spawn_application''
   
/usr/lib/ruby/gems/1.8/gems/passenger-1.0.5/lib/passenger/application_spawner.rb:280:in
`fork''
   
/usr/lib/ruby/gems/1.8/gems/passenger-1.0.5/lib/passenger/application_spawner.rb:280:in
`handle_spawn_application''
   
/usr/lib/ruby/gems/1.8/gems/passenger-1.0.5/lib/passenger/application_spawner.rb:278:in
`fork''
...
After this apache is flooded by the process and freezes.
Anyone as been trough this or knows if this may be a bug on the
framework?
Perhaps some weird problem between apache and passenger
apache version is: Apache/2.2.3
passenger: 1.9
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---