Checking Content Type

Last post 09-03-2009, 9:32 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  09-03-2009, 5:52 AM 55344

    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
  •  09-03-2009, 9:32 AM 55351 in reply to 55344

    Re: Checking Content Type

    JG
     
    AjaxUploader do not provide content-type for security version.
     
    The content-type is send by client side and that is not trust-able.
     
    Developer should check the extension and data to prevent the code be executed at server side.
     
    Regards,
    Terry
     
View as RSS news feed in XML