3 ms·
"Be strict in what you send; be liberal in what you accept" seems a relevant maxim here, but I wonder if it's reasonable to assume given the utter ubiquity of P
by zhengyi13 6y ago
"Be strict in what you send; be liberal in what you accept" seems a relevant maxim here, but I wonder if it's reasonable to assume given the utter ubiquity of PNG and JPEG that of course that's what other people would be using?
- oefrha 6y agoSure, and turns out you don't even need the accept attribute (see edit). They're doing something funny.
- adrianmonk 6y agoIf you're going to make an assumption, that one is definitely understandable. However, taking a step back, you should have enough representative test cases (QA snaps a photo with iPhones, tries to upload) that whether assumptions are reasonable doesn't enter into it because you aren't making them.