php - POST array is empty when containing a file -


i have simple html form containing file input. when form submitted without file, printing $_post array shows me of data submitted. when file submitted, however, $_post doesn't print out of submitted data.

can tell me why? code:

<?php     print_r($_post); ?> <form action="test.php" method="post" enctype="multipart/form-data">     <label for="myfile">video file:</label>     <input type="file" name="myfile" />     <br /><br />     <label for="mytitle">title:</label><br />     <input type="text" name="mytitle" size="55" maxlength="60" />     <br /><br />     <input type="submit" name="mysubmit" value="submit video approval" /> </form> 

your script seems fine. please check server configuration. perhaps exceed post limits (set post_max_size in php.ini)


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -