I'm using the PlugIn Bootstrap File Input
And it is returning me 'Notice: Undefined offset:'
Codes
<input id="file-upload" name="files[]" type="file" multiple>
Form already has enctype="multipart/form-data">
Post:
$fdata = $_FILES['files'];
$uploads_dir = 'images/';
$img = array();
for ($i = 0; $i < count($fdata['name']); $i++) {
preg_match("/\.(gif|bmp|png|jpg|jpeg){1}$/i", $_FILES['files']['name'][$i], $ext);
$imagem_nome = md5(uniqid(time())) . "." . $ext[1];
$temp_name = $_FILES['files']['tmp_name'][$i];
move_uploaded_file($temp_name, "$uploads_dir"."$imagem_nome");
$img[] = $imagem_nome;
}
This is Upload.
Even giving an echo to:
echo $_FILES['files']['name']['0'];
Nothing appears