Displaying 1 result from an estimated 1 matches for "session_files_key".
2006 Oct 15
1
mongrel_send_file gem plugin
...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 unique
filehash = Digest::SHA1....