Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Problem uploading files with empty value. solved #9

Open
maclau opened this issue Dec 12, 2013 · 3 comments
Open

Problem uploading files with empty value. solved #9

maclau opened this issue Dec 12, 2013 · 3 comments

Comments

@maclau
Copy link

maclau commented Dec 12, 2013

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.

@MakHiren
Copy link

i have tried buit it's not work

@onlyjf77
Copy link

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;
}

@maksumon
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants