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
I'm using carrierwave-aws and mimemagic latest version, now when upload a xlsx file in s3 everything is OK and file will be uploaded to s3, but when i try to download it, a zip file startdownloading, as i know the content type of file may be wrong,
now could you please tell me how can i set correct mime type for xlsx file while uploading using CarrierWave::Uploader::Base config
The text was updated successfully, but these errors were encountered:
But I need more help, I saw your link but I don't know how should I use them,
I'm new to Ruby
I need to use carrierwacw-aws and I'm uploading xlsx files, but it seems their mimetype are wrong.
now I decide to set miimetyoe manually but I need your help because I don't know how.
Setting the content type is handled by carrierwave itself, not carrierwave-aws. The content_type is set from the file that you upload. I believe you can override it directly in your uploader or on the file, but I'm not 100% sure. You'll need to ask on the carrierwave project (which I don't maintain).
I'm using carrierwave-aws and mimemagic latest version, now when upload a xlsx file in s3 everything is OK and file will be uploaded to s3, but when i try to download it, a zip file startdownloading, as i know the content type of file may be wrong,
now could you please tell me how can i set correct mime type for xlsx file while uploading using CarrierWave::Uploader::Base config
The text was updated successfully, but these errors were encountered: