search for: my_file_name

Displaying 2 results from an estimated 2 matches for "my_file_name".

Did you mean: ca_file_name
2007 Sep 25
2
attachment_fu default path
...chment :max_size => 20.megabytes has_attachment :content_type => "audio/mpeg" has_attachment :storage => :file_system has_attachment :path_prefix => "public/files [/audio.rb] But all my files go on been uploaded to public/files/0000/00[last inserted id]/my_file_name.ext. What am I missing? I want that all my files go to public/files. Thank you very much amd sorry my poor english. -- Davi Vidal -- E-mail: davividal-UiHwsRqXctc1RhZgQKG/ig@public.gmane.org MSN : davividal-uAjRD0nVeow@public.gmane.org GTalk : davividal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.or...
2005 Dec 20
0
2005 a send_file odyssey (or Rails and Apache don''t always play well)...
...ytes up to several gigabytes. All this development is taking place with Rails 1.0 on a Solaris host with Ruby 1.8.2 and Rails mode set to "development". I''m using the Rails send_file method to send each file with these settings: send_file(my_path_to_file, :filename => my_file_name, :type => my_file_mime_type, :disposition => "attachment", :stream => true, :buffer_size => 4096) With appropriate values for my_path_to_file, m...