iPhone JPG image has non-standard magic bytes ff d8 ff e1?
问题 My web app checks the first four bytes against the file extension before accepting uploaded images. A coworker showed me images from his iPhone which are being rejected. These have a different fourth byte (e1 = 225 instead of the expected e0 = 224). Is this usual for iPhones? Are there other possible magic byte strings used in JPG files? Edit: found this useful list: http://www.garykessler.net/library/file_sigs.html 回答1: They seem to indicate a sub category of JPEG in some way. What I have