I get return of the file names when the files are uploaded, but i want to store all of the file names in array and attach them to php form. This is what i have so far.
this.on("success", function(file, res) {
console.log(res.path);
file.newFileName = res;
$path = res.path;
// Create a hidden input to submit to the server:
$("#image").append($('<input type="hidden" ' +'name="files[]" ' +'value="' + res.path + '">'));
});
and then i have, this in php form. It works for one filename but only saves most current one.
{!! Form::hidden('image', '', array('id' => 'user-image')) !!}