I am working on a single page application and I am using Laravel 5 for the web service.
All forms are submitted asynchronously and I use a beforeSend on them to atta
This also works pretty well :
$("#mydropzone").dropzone({ url: "/profile/update-photo", addRemoveLinks : true, maxFilesize: 5, dictResponseError: 'Error uploading file!', headers: { 'X-CSRF-Token': $('input[name="authenticity_token"]').val() } });