CarrierWave Config -でグローバルに属性を設定できます -
CarrierWave.configure do |config|
config.fog_attributes = {'Content-Disposition' => ...}
end
または、アップローダークラス自体で定義することもできます
def fog_attributes
{'Content-Disposition' => ...}
end
アップローダーのメソッドは、アップローダーがアクセスできるデータを使用して、fog_attributesの適切な返品値を決定できます