dropzone csrf codeigniter

Solutions on MaxInterview for dropzone csrf codeigniter by the best coders in the world

showing results for - "dropzone csrf codeigniter"
Leny
23 Jan 2016
1var myDropzone = new Dropzone("div#mydropzone", {
2  url: "/controller/method_receive_files",
3  sending: function (file, xhr, formData) {
4    formData.append('<?php echo $this->security->get_csrf_token_name(); ?>', '<?php echo $this->security->get_csrf_hash(); ?>');
5  }
6}); 
7//OR...
8myDropzone.on('sending', function(file, xhr, formData) {
9  formData.append('<?php echo $this->security->get_csrf_token_name(); ?>', '<?php echo $this->security->get_csrf_hash(); ?>');
10});