title: How to save file from $request in laravel?
body: <p>I have a function in controller</p>
  <pre><code>    public function upload(Request $request)
          {
   $file = $request-&gt;file('File');
   $destinationPath = 'uploads';
   $file-&gt;move($destinationPath,$file-&gt;getClientOriginalName());
      
          }
  </code></pre>
  <p>if i send the $request in log it shows something like this</p>
  <pre><code>array (
    '_id' =&gt; 'tuYDOc644W6DDgAS',
    '_token' =&gt; 'FerVRJvJWtnzv91TGuFRpIeT173aD9pH2o9Pqcu9',
    'upload_column' =&gt; 'File',
    'id' =&gt; 'WU_FILE_0',
    'name' =&gt; '134772132_217259409961521_6013657189083751736_o.jpg',
    'type' =&gt; 'image/jpeg',
    'lastModifiedDate' =&gt; '2/7/2021, 6:44:12 AM',
    'size' =&gt; '629882',
    '_file_' =&gt; 
    Illuminate\Http\UploadedFile::__set_state(array(
       'test' =&gt; false,
       'originalName' =&gt; '134772132_217259409961521_6013657189083751736_o.jpg',
       'mimeType' =&gt; 'image/jpeg',
       'error' =&gt; 0,
       'hashName' =&gt; NULL,
    )),
  ) 
  </code></pre>
  <p>but this is giving a &quot;Call to a member function move() on null&quot;</p>
  <p>i am using <a href="https://laravel-admin.org/" rel="nofollow noreferrer">laravel-admin package</a> , how can i properly save file and get information about the file?</p>