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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -