thoughtbot / paperclip

Easy file attachment management for ActiveRecord
https://thoughtbot.com
Other
9.01k stars 2.43k forks source link

Upload file apk to s3 #2665

Open trandinhchinh1995 opened 4 years ago

trandinhchinh1995 commented 4 years ago

Hello. I need to push file apk to s3 validates :payload, attachment_content_type: { content_type: ["application/vnd.android.package-archive"] } this is my validates file. and this return: ActiveRecord::RecordInvalid - Validation failed: Payload content type is invalid, Payload is invalid: if i change content type to application/zip. it can upload. but when i download. this is a zip file. But i need to apk file. Can you help me fix this issue?

MarcusPetri commented 3 years ago

same problem here.

with .pptx too