3 ms·
I remember trying to explain that checking the file extension of a file doesn't mean that it is actually an "image" file. I was an intern at my first internship
by _RPM 10y ago
I remember trying to explain that checking the file extension of a file doesn't mean that it is actually an "image" file. I was an intern at my first internship, but wasn't taken seriously when I proposed [to the senior dev] that we do actual file validation (bytes) and not just extension validation for the uploaded images. Yes, it would take more time. But, since I was just low on the pole, I think I wasn't taken seriously.
Also maybe it wasn't my place to suggest design solutions, and or my approach wasn't as good as it should have been.
- kyled 10y agoGifjar! https://en.m.wikipedia.org/wiki/Gifar https://en.m.wikipedia.org/wiki/Gifar
- deleted 10y ago[deleted]
- Flimm 10y agoWhat Mozilla is proposing here is that metadata (the mime header if not the filename) is respected and guessing based on the contents is eliminated. So the proposal is more similar to your professor's idea than to yours.
- Flimm 10y agoWhat Mozilla is proposing here is that metadata (the mime header if not the filename) is respected and guessing based on the contents is eliminated. So the proposal is more similar to your professor's idea than to yours.