拉莫斯之舞
我有这个代码:if ($request->hasfile('otherFiles')) { $this->validate($request, [ 'otherFiles' => 'required', 'otherFiles.*' => 'mimes:jpg,jpeg,bmp,png,doc,docx,csv,rtf,xlsx,xls,txt,pdf' ]); foreach ($request->file('otherFiles') as $file) { $extension = strtolower($file->getClientOriginalExtension()); $path = 'upload/other/'; $uniqueName = md5($file . time()); $file->move(public_path($path), $uniqueName . '.' . $extension); } } 我有错误:“otherFiles”:[“其他文件必须文件类型为图像/jpeg。”