Upload Options
The upload_options plugin allows you to automatically pass
additional upload options to storage on every upload:
plugin :upload_options, cache: { acl: "private" }Keys are names of the registered storages, and values are either hashes or blocks.
plugin :upload_options, store: -> (io, options) do
if options[:derivative]
{ acl: "public-read" }
else
{ acl: "private" }
end
endIf you're uploading the file directly, you can also pass :upload_options to
the uploader.
uploader.upload(file, upload_options: { acl: "public-read" })