Using C# how can I test a file is a jpeg? Should I check for a .jpg extension?
Thanks
Read the header bytes. This article contains info on several common image formats, including JPEG:
Using Image File Headers To Verify Image Format
JPEG Header Information