Displaying 2 results from an estimated 2 matches for "_my_session_id".
2007 Feb 27
2
send_file and ZIP files
...00 Internal Server Error
Date: Tue, 27 Feb 2007 08:52:54 GMT
Server: Mongrel 1.0.1
Status: 500 Error
Content-Transfer-Encoding: binary
Cache-Control: private
Content-Disposition: attachment; filename="somefile.zip"
Content-Type: */*
Content-Length: 1
Set-Cookie: _my_session_id=a65e09ab923208a4404893f2d3709196; path=/
Via: 1.0 www.myhost.com
Connection: close
08:52:54 ERROR 500: Internal Server Error.
whereas on the development servers I see
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Connection: close
Date: Tue, 27 Feb 2007 08:55:40 GMT
Se...
2006 Oct 15
1
mongrel_send_file gem plugin
...from
the session using the unique hash, sends it to the user
== Usage
After installing the gem, you''ll need to setup the handler for your Rails app:
# config/mongrel_send_file.conf
uri "/file/", :handler => plugin("/handlers/sendfile", :session_key =>
''_my_session_id'', :session_files_key => :files), :in_front => true
# rails action that sends the file
def download
# do whatever it is you do to find get the filename/content type
@attachment = Attachment.find(params[:id])
# this doesn''t matter as long as it''s uniqu...