Hi,
I am posting the file from client side HTML and I wrote a PHP script at server side to check whether the uploaded file is image or not as if($_FILES[“file”][“type”]==“image/jpg”…).
But this code does not check the actual content of the file uploaded,i.e if someone renames other file types as .jpg or .png etc then my script takes it as image file.
Anybody please help me.
Thanks.