Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Upload file apk to s3 #2665

Open
trandinhchinh1995 opened this issue Sep 3, 2020 · 1 comment
Open

Upload file apk to s3 #2665

trandinhchinh1995 opened this issue Sep 3, 2020 · 1 comment

Comments

@trandinhchinh1995
Copy link

trandinhchinh1995 commented Sep 3, 2020

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
Copy link

same problem here.

with .pptx too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants