News for hackers. Stuff that matters.
Re:Students are failing AP tests because the College Board c... by hamandcheese on Thursday May 21, 2020 @03:15PM (#23263533)
I think the issue is that accept is specified only with extensions rather than mime types.
Re:Students are failing AP tests because the College Board c... by scott_s on Thursday May 21, 2020 @03:53PM (#23264126)
I wondered that, too, but I couldn't find any HTML documentation that blessed one form as superior to the other. And I would be surprised if Apple automatically converted images for "accept=image/jpg" but not "accept=.jpg".
Re:Students are failing AP tests because the College Board c... by johnp_ on Thursday May 21, 2020 @04:58PM (#23265222)
Here's the spec:

https://html.spec.whatwg.org/multipage/input.html#attr-input...

> Authors are encouraged to specify both any MIME types and any corresponding extensions when looking for data in a specific format.

> User agents should prevent the user from selecting files that are not accepted by one (or more) of these tokens.