In my case i was include enctype on myform like
<form id="product_add" name="product_add" accept-charset="utf-8" action="product_add_inter.php" method="post" enctype="multipart/form-data">
then my input type file is
<input name="imagefile" class="form-control" type="file" />
Problem is in server side i need to upload my image to distination folder.I was tried to get file from form using
$_FILES["imagefile"]["name"]
its worked and returned name of my image. But when i get the file using temp_name it return null values.
$_FILES["imagefile"]["tmp_name"]
how can i solve this.