amazon s3 - Rails carrierwave S3 get url with Content-Disposition header -
We are using Carrier Says + AAS S3 to upload the file, and to provide us a download function the wanted.
For 1 solution, we use it:
= link_to "download", file.doc.url, download: file.original_name And it does not work, under IE8, click on the link, this file will open. According to
, I should add the content-break header, then I have a AOS S3 document, me the feedback-content-nature to file.doc.url , Is there a way I can do in a carrier, or I can use other methods ? Thanks for your help.
found it, for fu = FileUploader.new , we use it Can: fu.url (query: {"response-content-disposition" => "attachment;"}) read Many tons of document and source code.
Comments
Post a Comment