Displaying 1 result from an estimated 1 matches for "my_path_to_file".
2005 Dec 20
0
2005 a send_file odyssey (or Rails and Apache don''t always play well)...
...es range in size
from a few kilobytes 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...