Error in PHP file uploading -
now, getting problem. trying upload file code :-
<form action="up.php" method="post"> <input type="hidden" name="max_file_size" value="200000" /> choose file upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" name="submit" value="upload!"/> </form>
here up.php:-
if(!isset($_files["uploadedfile"])) die("no file found");
in above code, says "no file found". why isn't having file?
you need add enctype="multipart/form-data"
in form.
<form action="up.php" method="post" enctype="multipart/form-data">
Comments
Post a Comment