CodeIgniter-Multi-Upload icon indicating copy to clipboard operation
CodeIgniter-Multi-Upload copied to clipboard

Problem uploading files with empty value. solved

Open maclau opened this issue 11 years ago • 3 comments

i found an issue when my users let one o more of my inputs empty.

i put this code line in the line 262

$_FILES[$field]["name"] = array_filter($_FILES[$field]["name"]);

and solve my problem, i hope can help to fix the problem to another user.

maclau avatar Dec 12 '13 21:12 maclau

i have tried buit it's not work

MakHiren avatar Jan 18 '14 06:01 MakHiren

You can add below code to the line 280, just below of for($i=0; $i<count($_FILES[$field]["name"]); $i++){

Please paste below code to the line 280 // check empty file array if(empty($_FILES[$field]["tmp_name"][$i])){ continue; }

onlyjf77 avatar Apr 10 '14 04:04 onlyjf77

Thanks, maclau, your fix is working like a charm...

maksumon avatar Aug 31 '14 13:08 maksumon