Displaying 1 result from an estimated 1 matches for "my_file_mime_type".
2005 Dec 20
0
2005 a send_file odyssey (or Rails and Apache don''t always play well)...
...ng 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, my_file_name,
my_file_mime_type which are logged so I can check t...