简体   繁体   English

laravel 请求文件返回 null

[英]laravel request file return null

this question have been asked many times before, I've tried all the solutions but nothing work with me这个问题已经被问过很多次了,我已经尝试了所有的解决方案,但对我没有任何作用

   "laravel/framework": "^6.0",

//----- //-----

   <form  action="post_customer_data" id="editform" method="POST" class="form-horizontal" enctype="multipart/form-data">
    <input id="logo" type="file" name="logo" class="form-control  form-control-lg">

  dd($request->file('logo')); //Return Null!!!

in controller i use all the required packages在 controller 中,我使用了所有必需的包

use Storage;
use File;
use Intervention\Image\Facades\Image;
use Illuminate\Http\Request;

What are the result if you print all the request data?如果把所有的请求数据都打印出来,结果是什么? Something like that:像这样的东西:

dd($request->all());

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM