i edited this code alot of times (im noob whit php) and my problem is upload multiples files with this code. i can upload only 1 file.
Here
my suggestion is
foreach ($_FILES[$file_field] as $file) {
where you have // Get filename
string}
in the end of the function$_FILES[$file_field]
to $file
inside itAnd, of course, input must have multiple
attribute as Sherin Jose said (tut), but now it's fully supported only by 8.27% of browsers, so you'd better add more inputs with JS, like
...
and loop them in the same way