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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -