Laravel:尝试上载多个文件时出错

Laravel:尝试上载多个文件时出错,laravel,Laravel,我正在尝试上载多个图像,但不幸的是,我收到一条错误消息:“文件”phpzP428U.png“不存在”如何解决此问题?谢谢 退货请求 dd($request->all()) InboxController foreach ($request["file"] as $key => $value) { $file = Storage::disk('yourstitchart')->putFile('', $value); array

我正在尝试上载多个图像,但不幸的是,我收到一条错误消息:“文件”phpzP428U.png“不存在”如何解决此问题?谢谢

退货请求

dd($request->all())

InboxController

  foreach ($request["file"] as $key => $value) {
      $file = Storage::disk('yourstitchart')->putFile('', $value);
      array_push($files, $file);
    }

    foreach ($request["users"] as  $key => $users) {
      $digitzingInbox = new Inbox;
      $digitzingInbox->file = json_encode($request[$files]);
      $digitzingInbox->order_id = $request->order_id;
      $digitzingInbox->order_name = $request->order_name;
      $digitzingInbox->width = $request->width;
      $digitzingInbox->height = $request->height;
      $digitzingInbox->placement = $request->placement;
      $digitzingInbox->format = $request->format;
      $digitzingInbox->fabric = $request->fabric;
      $digitzingInbox->instruction = $request->instruction;
      $digitzingInbox->to_user = $users;
      $digitzingInbox->from_user = Auth::user()->id;
      $digitzingInbox->type = 2;
      $digitzingInbox->save();
    }

我认为这是不言自明的,那个文件可能不存在于文件夹中。如果匹配,请查找名称。

您是否在表单中设置了
enctype=“multipart/form data”