Try this.
<?php
ini_set('upload_max_filesize', '200K');
if (($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpg")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg")
)
{
if ($_FILES["file"]["error"] > 0)...