Checking Content Type

  •  09-03-2009, 5:52 AM

    Checking Content Type

    What is to stop somebody uploading a file that does not contain what is says it contains.
     
    It seems that you can only specify file type by extension (for example jpg) but what is to stop somebody uploading sdfsdf.txt.jpg which is just a renamed text file.
     
    Is there any way to check content type of the file before upload?
     
    JG
View Complete Thread