所以我已经尝试了一切,response-content-disposition当我使用CloudFront.
这适用于常规S3,Carrierwave和Fog... 只是不适用于 Cloudfront:
Book.first.filename_url(:query => {"response-content-disposition" => "attachment"})
仅返回云端 URL 本身,没有查询参数。
顺便说一句,我已经公开设置为true。
所以我已经尝试了一切,response-content-disposition当我使用CloudFront.
这适用于常规S3,Carrierwave和Fog... 只是不适用于 Cloudfront:
Book.first.filename_url(:query => {"response-content-disposition" => "attachment"})
仅返回云端 URL 本身,没有查询参数。
顺便说一句,我已经公开设置为true。