Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement for paperclip inputs: validate extension on frontend to avoid unnecessary uploads #13

Open
gabriel-cardoso opened this issue Jul 26, 2016 · 0 comments

Comments

@gabriel-cardoso
Copy link
Contributor

Since HTML5, I think, you can specify a accept attribute on a file input. Couldn't we fetch content type validations on a paperclip input and set this attribute on the frontend ?
This could avoid uploading, say, a 1 GB file with a wrong type!

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

No branches or pull requests

1 participant