You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm using CarrierWave to host files on S3 for my project. I'm trying to host selected files with Content-Disposition: attachment header. It seems like remote_#{column}_request_header= is the way to go for setting up headers for individual files and fog_attributes would be a way to do it for all files as I'm gathering from #2006 and #2193.
Here is an example of how I'm trying to set up the request header:
I can upload a file without a problem. However there is no Content-Disposition in the request header when I get the file from S3. So it seems like remote_file_request_header setter is ignored. Something does not seem right, could you please help?
The text was updated successfully, but these errors were encountered:
You're getting it wrong, remote_#{column}_request_header= is for setting headers on downloading a file using remote_#{column}_url. You need to use fog_attributes to achieve what you want.
Hi I'm using CarrierWave to host files on S3 for my project. I'm trying to host selected files with
Content-Disposition: attachment
header. It seems likeremote_#{column}_request_header=
is the way to go for setting up headers for individual files andfog_attributes
would be a way to do it for all files as I'm gathering from #2006 and #2193.Here is an example of how I'm trying to set up the request header:
I can upload a file without a problem. However there is no
Content-Disposition
in the request header when I get the file from S3. So it seems likeremote_file_request_header
setter is ignored. Something does not seem right, could you please help?The text was updated successfully, but these errors were encountered: