title: How to show only .pdf file when browse file to upload using Laravel 5.0?
body: <p>I am using Laravel 5.0. I have a file upload function. It's going well. But I want to make the user only uploaded pdf files. I want when browse a file, the storage only show files with only .pdf files. And I want to have a size limit to file which want to upload. 
  
  <blockquote>
    <p>Here is the view</p>
  </blockquote>
  
  <pre><code>    &lt;div class="form-group"&gt;
          &lt;label for="upload_file" class="control-label col-sm-2"&gt;Upload File&lt;/label&gt;
          &lt;div class="col-sm-9"&gt;
              &lt;input class="form-control" type="file" name="upload_file" id="upload_file" required&gt;
          &lt;/div&gt;  
      &lt;/div&gt;
  </code></pre>
  
  <blockquote>
    <p>Here is the controller</p>
  </blockquote>
  
  <pre><code>$destination = 'files';
  
      if($request-&gt;hasFile('upload_file')) {
          $file = $request-&gt;file('upload_file');
          $extension = $file-&gt;getClientOriginalExtension();
          $file_name =  str_replace('/','_',$request['nomor_surat']) . '-' . $kode_divisi[0]-&gt;kode_divisi . '.' . $extension;
  
          $file-&gt;move($destination, $file_name );
      }
      $upload_file = $file_name;
  
      $surat = new Surat();
      $surat-&gt;upload_file = $upload_file;
      $surat-&gt;save();
  </code></pre>
  
  <p>and what should I do next? what should I add in my controller and route and view?</p>