search for: attachmentcontrol

Displaying 1 result from an estimated 1 matches for "attachmentcontrol".

2005 Dec 02
0
send_file method on windows and webrick
...ile() method. Instead of returning the file, the file''s contents are being printed out to the WEBrick console, the browser hangs for a while, and then an empty file is returned from the download dialog box (Firefox 1.0.7/IE 6.02). Here is the code I am using to return the file - class AttachmentController... def download attachment = Attachment.find(params[:id]) send_file(attachment.path) #path is c:/project_dir/upload/user/file_to_send.txt end ... Any ideas or experience with this? I have searched high and low for related problems but I have come up empty. Any help would be much apprec...