title: Form Posts Text Inputs But Not File
body: <p>I am trying to submit file inside a form to Laravel backend. It posts all the other text fields but not file (when I <code>dd($request-&gt;all())</code>)</p>
  
  <pre><code>&lt;form class="form-horizontal" role="form" method="POST" action="" enctype="multipart/form-data"&gt;
  
       &lt;input id="item_price" type="item_price" class="form-control" name="item_price" value=""&gt;
      &lt;!-- other inputs --&gt;
  
      &lt;input type="file" id="product_image" name="product_image" onchange="previewImage(this);"/&gt;
      &lt;img id="previewing" src="{{asset('noImage.gif')}}" style="width: 100%; height: 100%" /&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p><code>item_price</code> seems on <code>dd($request-&gt;all())</code> and also other fields are seen, but no file input</p>
  
  <p>When I display the image with jQuery (<code>previewImage</code>) before submitting the form, it shows the photo. But after I submit the form, on Laravel side it shows all the other fields and values but not any for file (when I use <code>dd($request-&gt;all())</code>.</p>
  
  <p>On <code>php.ini</code>, <code>max-post-size</code> is 100M.</p>
  
  <pre><code>   jQuery('#previewing').click(function() {
          uploadImageClicked();
     });
  
     function uploadImageClicked() {
          jQuery('#product_image').click();
     }
  </code></pre>
  
  <p><code>dd($request-&gt;hasFile('product_image')</code> returns false</p>