suggest default filename

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@138 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2008-02-05 01:42:08 +00:00
parent af2050cede
commit af01a92e03
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class GalleriesController < ApplicationController
def download_original def download_original
send_file("#{RAILS_ROOT}/public/images/" + send_file("#{RAILS_ROOT}/public/images/" +
@image.filename_for_version(:original), @image.filename_for_version(:original),
:filename => @image.filename_for_version(:original),
:disposition => 'inline', :type => @image.content_type) :disposition => 'inline', :type => @image.content_type)
end end