title: Uploading large file (45MB) via AJAX failing
body: <p>I'm trying to upload files via AJAX. Small files ~10MB are being uploaded successfully.</p>
  
  <p>However, when I try to upload larger files, it fails with the following message:</p>
  
  <blockquote>
    <p>Internal Server Error</p>
    
    <p>The server encountered an internal error or misconfiguration and was
    unable to complete your request.</p>
    
    <p>Please contact the server administrator, webmaster@.com and inform
    them of the time the error occurred, and anything you might have done
    that may have caused the error.</p>
    
    <p>More information about this error may be available in the server error
    log.</p>
    
    <p>Additionally, a 500 Internal Server Error error was encountered while
    trying to use an ErrorDocument to handle the request.</p>
  </blockquote>
  
  <p>I'm using <code>Laravel 5</code> on dreamhost.</p>
  
  <p>I've put debugging messages everywhere, but it seems that my PHP code is not being executed at all. Also, there's no info in error.log either.</p>
  
  <p>I've checked <code>php.ini</code> with following settings:</p>
  
  <pre><code>max_execution_time 30
  max_file_uploads 20
  post_max_size 500M
  upload_max_filesize 500M
  </code></pre>
  
  <p>Intially, I had mounted <code>/tmp folder</code> at one place which had partition size of 100MB. At that time, the error.log said <code>"modsecurity: input filter failed writing 8192 bytes to temporary file"</code>
  So I changed to location of <code>/tmp</code> folder to my home folder in order to remove size restrictions, but not working.</p>
  
  <p>Here is the current behaviour:
  File upload shows 100%.
  Then the request waits for sometime without causing logs.
  After a while, the above mentioned error message is returned.</p>
  
  <p>Let me know which further info is required.</p>
  
  <p>Thank you very much!</p>