title: Uploads getting stuck using Dropzone.js with Laravel
body: <p>I am using dropzone.js, and have it integrated with Laravel. Everything is working as expected. Smaller file sizes upload no problem. But around the 3.5mb threshold, uploads tend to stall out.</p>
  
  <p>A couple of notes:</p>
  
  <p>According to my phpInfo, the following parameters are set as so:</p>
  
  <pre><code>max_execution_time = 60s
  max_file_uploads = 20
  memory_limit = 128M
  post_max_size = 10M
  upload_max_filesize = 10M
  </code></pre>
  
  <p>Additionally, in the initializing JS, I have the maxFileSize set to 25 (full code below).</p>
  
  <p>I also checked with my hosting company, and the NGINX post size is also set to be 25mb.</p>
  
  <p>As previously mentioned, the script and everything seems to be working just fine as long as the files are below ~3.5mb, so I don't necessarily think it's an issue with the script, or permissions. It's just, as soon as it gets to that 3.5mb mark, uploads just stop, and never finish uploading. There's gotta be something, somewhere that is preventing a file from going over that size - but I can't for the life of me figure out what it could be.</p>
  
  <p>Any ideas of what I could be missing?</p>
  
  <pre><code>Dropzone.options.dropzone = {
  
  maxFilesize: 25,
  init: function() {
      console.log("Its initialized.");
  
      this.on("queuecomplete", function (file) {
          console.log(file);
          console.log("All done!");
      });
  },
  
  renameFile: function(file) {
      var dt = new Date();
      var time = dt.getTime();
     return time+file.name;
  },
  
  acceptedFiles: ".jpeg,.jpg,.png,.gif,.ai,.psd,.pdf,.tiff,.eps,.svg,.xd",
  addRemoveLinks: true,
  timeout: 5000,
  removedfile: function(file) {
      var name = file.upload.filename;
  
      $.ajaxSetup({
          headers: {
              'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
          }
      });
  
      $.ajax({
          type: 'POST',
          url: 'logo/delete',
          data: {filename: name},
          success: function (data){
              console.log("File has been successfully removed!!");
              $(".logos-wrapper").empty().append(data);
          },
          error: function(e) {
              console.log(e);
          }});
          var fileRef;
          return (fileRef = file.previewElement) != null ? 
          fileRef.parentNode.removeChild(file.previewElement) : void 0;
  },
  success: function(file, response) {
      console.log(response);
      var someValue = "";
      $.ajax({
          headers: {
              'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')
          },
          type: 'GET',
          url: 'get-logos',
          data: {someValue:someValue},
          success: function (logos){
              $(".logos-wrapper").empty().append(logos);
          },
  
          error: function(e) {
              console.log(e);
          }
      });
  
  },
  error: function(file, response) {
      console.log("There was an error");
     return false;
  }
  };
  </code></pre>