php - not getting image file ,getting only name of file -


i uploading images /files on upload multiple image shows image name not mime type using java script

<input type='file' name='data[expensedetail][description]["+i+"][expense_file][]' id='expense_file"+i+"' style='display: none' multiple='true'> 

where 'i' value of array coming in loop = 0,1,2,3 ... works fine , getting result on post [images details][1]

[1]: http://i.stack.imgur.com/ixaxr.png , using

$finfo = finfo_open(fileinfo_mime_type);  echo finfo_file($finfo, $file); //$file file name coming in above image in array echo $file; 

failed open stream: no such file or directory

sounds me you're missing enctype="multipart/form-data" in form element - without server process file input text field , receive filename.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -