title: How can i get the correct file extension in laravel 5.4
body: <p>When I upload a csv file in laravel 5.4, I get 'txt' as the extension. Is there something I'm missing?</p>
  
  <p><strong>View</strong></p>
  
  <pre><code>{!! Form::open(['url' =&gt; 'transaction/save', 'files' =&gt; true]) !!}
  
  {!! Form::file('batch'); !!}
  
  {!! Form::submit('Upload') !!}
  
  {!! Form::close() !!}
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>public function saveBatch(Request $request)
   {
          $file = $request-&gt;batch;
          $path = $request-&gt;batch-&gt;extension();
  
          dd($path);
   }
  </code></pre>