How you can verify the file types? For example if the file introduced to your application has the .JPG extention how can you decide if it is really a jpg file or just has jpg extension. I guess it will be a hard task because of lots of file types available, so i just need to know about JPGs.

Thanks.