title: function getClientOriginalName() on null Laravel
body: <p>Im trying to use Dropzone in my french laravel app (latest version) When I save my form I get the error</p>
  
  <blockquote>
    <p>Call to a member function getClientOriginalName() on null
    I try to see if my request sent something with dd()  but I get null</p>
  </blockquote>
  
  <p>This is my function on the controller</p>
  
  <pre class="lang-php prettyprint-override"><code>public function enregistrer(Request  $request){
          $photo = $request-&gt;file('file');
          $imageName = $photo-&gt;getClientOriginalName();
          $image-&gt;move(public_path('images'),$imageName);
  
          $demande = new Demande();
          $demande-&gt;filename = $imageName;
          $demande-&gt;cin= $request('cin');
          $demande-&gt;apoge=$request('apoge');
          $demande-&gt;generatedCode= uniqid();
          $demande-&gt;save();
  
          return  redirect('/demande');
  
      }
  </code></pre>
  
  <p>And this is my view</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="{{ str_replace('_', '-', app()-&gt;getLocale()) }}"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  
          &lt;!-- All for dropzone --&gt;
          &lt;meta name="_token" content="{{csrf_token()}}" /&gt;
          &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"&gt;
          &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/min/dropzone.min.css"&gt;
  
    &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"&gt;&lt;/script&gt;
    &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/dropzone.js"&gt;&lt;/script&gt;
  
          &lt;title&gt;Submission E-Docs&lt;/title&gt;
  
          &lt;!-- Fonts --&gt;
          &lt;link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet"&gt;
  
          &lt;!-- Styles --&gt;
          &lt;style&gt;
              html, body {
                  background-color: #fff;
                  color: #636b6f;
                  font-family: 'Nunito', sans-serif;
                  font-weight: 200;
                  height: 100vh;
                  margin: 0;
              }
  
              .full-height {
                  height: 100vh;
              }
  
              .flex-center {
                  align-items: center;
                  display: flex;
                  justify-content: center;
              }
  
              .position-ref {
                  position: relative;
              }
  
              .top-right {
                  position: absolute;
                  right: 10px;
                  top: 18px;
              }
  
              .content {
                  text-align: center;
              }
  
              .title {
                  font-size: 84px;
              }
  
              .links &gt; a {
                  color: #636b6f;
                  padding: 0 25px;
                  font-size: 13px;
                  font-weight: 600;
                  letter-spacing: .1rem;
                  text-decoration: none;
                  text-transform: uppercase;
              }
  
              .m-b-md {
                  margin-bottom: 30px;
              }
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="flex-center position-ref full-height"&gt;
              @if (Route::has('login'))
                  &lt;div class="top-right links"&gt;
                      @auth
                          &lt;a href="{{ url('/home') }}"&gt;Home&lt;/a&gt;
                      @else
                          &lt;a href="{{ route('login') }}"&gt;Login&lt;/a&gt;
  
                          @if (Route::has('register'))
                              &lt;a href="{{ route('register') }}"&gt;Register&lt;/a&gt;
                          @endif
                      @endauth
                  &lt;/div&gt;
              @endif
  
              &lt;div class="content"&gt;
                  &lt;form role="form" action="{{url('demande/store')}}" method="POST" enctype="multipart/form-data" class="dropzone" id="dropzone"&gt;
                  @csrf
                  &lt;label&gt; Votre CIN:&lt;/label&gt;
                  &lt;input type="text" name="cin"/&gt;
                  &lt;label&gt; Votre Apogée:&lt;/label&gt;
                  &lt;input type="text" name="apoge"/&gt;
  
                  &lt;!-- &lt;input name="file" type="file" multiple /&gt; --&gt;
  
  
                  &lt;br&gt;
                  &lt;input type="submit" class="btn btn-outline-primary btn-lx"  style="font-family:'Quicksand', sans-serif; font-size:20px "value="Créer"&gt;
  
                  &lt;/form&gt;
  
              &lt;/div&gt;
          &lt;/div&gt;
  
  
          &lt;script type="text/javascript"&gt;
              Dropzone.options.dropzone =
              {
                  maxFilesize: 10,
                  renameFile: function (file) {
                      var dt = new Date();
                      var time = dt.getTime();
                      return time + file.name;
                  },
                  acceptedFiles: ".jpeg,.jpg,.png,.gif",
                  addRemoveLinks: true,
                  timeout: 60000,
                  success: function (file, response) {
                      console.log(response);
                  },
                  error: function (file, response) {
                      return false;
                  }
              };
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  
  </code></pre>
  
  <p>I thought It was due the </p>