<? if ($ile==1) { print\"<html><head></head> <body> <form action=\"upl.php?ile=2\" style=\"display:inline;\" method=\"post\" enctype=\"multipart/form-data\"> <input type=\"hidden\" name=\"form_sent\" value=\"1\"> <br><input name=\"req_file\" type=\"file\"><br> </center><br><br> <input type=\"submit\" value=\"dodaj ť\"> </form> </body></html>\"; } elseif ($ile==2) { switch ($uploaded_file['error']) { case 1: // UPLOAD_ERR_INI_SIZE case 2: // UPLOAD_ERR_FORM_SIZE print\"1\"; break; case 3: // UPLOAD_ERR_PARTIAL print\"2\"; break; case 4: // UPLOAD_ERR_NO_FILE print\"3\"; break; default: // No error occured, but was something actually uploaded? if ($uploaded_file['size'] == 0) print\"4\"; } { $uploaded_file = $_FILES['req_file']; { print\"zły format\"; @chmod('11111111111111.jpg', 0644); } } } ?>
zwraca problem "4"...