I have file input in php
<form action="" method="POST" enctype="multipart/form-data">
<input type="file" name="fileup">
</form>
the error was "Undefine Index". here is my code for php.
<?php
$file = strtolower($_FILES["uploadpic"]["name"]);
?>
the undefined index was uploadpic.