nakov,
thanks for your reaction. At the end i was able to solve it. I seems that the package also runs a foreach. So that was not needed. I also had to do with the multi upload settings of the package. That was causing the problems.
Thanks for the help anyway!
public function store(Request $request){
$filename = sha1(time()).$request->file('file')->getClientOriginalName();
$request->file('file')->storeAs('xxx/uploads/temp/',$filename, 'do-spaces');
return Response::json($filename);
}
settings: uploadmultiple was true is to false.
//images zone
Dropzone.options.myAwesomeDropzone = { // The camelized version of the ID of the form element
url: '/dropzone/store',
uploadMultiple: false,
parallelUploads: 5,