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

Fixed 'accept' attribute documentation #431

Closed
wants to merge 1 commit into from
Closed

Fixed 'accept' attribute documentation #431

wants to merge 1 commit into from

Conversation

rvanbaalen
Copy link

Added description about valid 'accept' parameter values: don't mix file types and mime types in an accept attribute value!

Current examples (upload images / pdfs) don't work due to mixed mime type / file extension definition in accept attribute.

See spec definition here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#attr-accept

It's not literally stating that mixing values for accept is a wrong thing to do but tests using this directive prove that it only works when you either list mime types or file extensions. Not both.

Added description about valid 'accept' parameter values: don't mix file types and mime types in an accept attribute value!
danialfarid pushed a commit that referenced this pull request Dec 5, 2014
@danialfarid
Copy link
Owner

Updated the doc to reflect this, for ng-file-drop it doesn't need to be complaint with HTML accept attribute.
Thanks for reporting this.

@danialfarid danialfarid closed this Dec 5, 2014
@rvanbaalen rvanbaalen deleted the patch-1 branch December 5, 2014 18:09
@rvanbaalen
Copy link
Author

Allright, cool! 👍

This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants