"Senior Dave Spencer took a demo test before his Calculus AB exam to make sure he understood the process for uploading photos. He Airdropped an iPhone image of his responses to his Mac and tried to convert it by renaming the HEIC file to PNG. Changing a file’s extension does not guarantee that it will be converted, but Spencer was still able to submit the demo test with no problem.
Spencer used the same process on the real exam and thought it went through, but he received an email the next day saying the files were corrupted and that he needed to retake the test."
Never trust user input!
Frontend validation can never be trusted. It’s only good for giving faster feedback for a nicer user experience. You should always have backend validation.
I’ve seen people do some weird stuff before because the majority of users don’t really understand much about file types. Users rename file extension all of the time thinking it’ll magically convert a file into something that can be opened by their program of choice.
This is just poor QA by the College Board.
I can’t really blame the college board for this kind of mistake. Like would he assume that taking a .docx and renaming it to .pdf converts it?
The biggest joke here is that this wouldn't have helped the students either. I don't think any of them will pass the "there is a minute left on the timer and the website tells you your picture isn't JPEG or PNG" challenge.
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.