html - php empty post array with file upload -
<form method="post" enctype="multipart/form-data"> <h3>add video</h3> <div class="field_wrap"> <p>name</p> <input type="text" name="title"/> </div> <div class="field_wrap"> <p>video</p> <input name="video" type="file" /> </div> <p><button>add</button></p> </form>
this form use upload video file , title, when don't upload file $_post variable filled form data, if upload file $_post variable empty, why that?
you looking in wrong spot, try looking in $_files
not $_post
Comments
Post a Comment