I want to build a working upload file form and I use codes in this tutorial - http://www.w3schools.com/PHP/php_file_upload.asp
Everything works well. The only problem is, the original code only includes file type of gif and jpg. I need png also.
What I did is modified this lines :
> if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
to this :
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
|| ($_FILES["file"]["type"] == "image/png"))
but it turns error. Any advice?