title: Laravel The connection was reset error when i try to upload large file
body: <p>After some days to trace why I get <code>The connection was reset</code> error on created upload form on Laravel I thought the problem is on the server and I change more options of apache2 but nothing changed.</p>
  
  <p>I created simple PHP for upload file like with below implementation, that's work!!. now whats problem on my upload form on Laravel implementation which I get this error or <code>timeout</code>?</p>
  
  <p><strong>Please keep in the mind: I don't have any problem to upload small size files</strong></p>
  
  <p>Laravel implementation:</p>
  
  <p><strong>form:</strong></p>
  
  <pre><code>&lt;form action="{{route('lessons.store')}}" method="POST" enctype="multipart/form-data"&gt;
      {{ csrf_field() }}
      &lt;div class="form-group"&gt;
          &lt;div class="form-group"&gt;
  
          &lt;div class="form-group"&gt;
              &lt;label class="display-block"&gt;please choose file&lt;/label&gt;
              &lt;div class="media no-margin-top"&gt;
                  &lt;div class="media-body"&gt;
                      &lt;input type="file" class="file-styled" name="file"
                             value="{{old('file')}}"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="text-right"&gt;
               &lt;button type="submit" class="btn btn-primary"&gt;Upload FILE
                      &lt;i class="icon-arrow-left13 position-right"&gt;&lt;/i&gt;&lt;/button&gt;
          &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>controller:</p>
  
  <pre><code>public function store(RequestContents $request)
  {
      ini_set('memory_limit', '256M');
      $uploadedFile = $request-&gt;file('file');
  
      dd($uploadedFile);
  }
  </code></pre>
  
  <p>route:</p>
  
  <pre><code>Route::group(['namespace' =&gt; 'Dashboard', 'middleware' =&gt; ['auth:web'], 'prefix' =&gt; 'panel'], function () {
      ...
      $this-&gt;resource('lessons', 'LessonsController');
      ...
  });
  </code></pre>