简体   繁体   中英

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

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());

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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