i am uploading images /files on upload multiple image but it only shows image name not their 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' is value of array coming in loop i = 0,1,2,3 ... everything works fine and i am getting this result on post [images details][1]
[1]: http://ift.tt/1TnkXRR and using
$finfo = finfo_open(FILEINFO_MIME_TYPE);
echo finfo_file($finfo, $file); //$file is the file name coming in above image in array
echo $file;
failed to open stream: No such file or directory
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire