dropzone csrf codeigniter
var myDropzone = new Dropzone("div#mydropzone", {
url: "/controller/method_receive_files",
sending: function (file, xhr, formData) {
formData.append('<?php echo $this->security->get_csrf_token_name(); ?>', '<?php echo $this->security->get_csrf_hash(); ?>');
}
});
//OR...
myDropzone.on('sending', function(file, xhr, formData) {
formData.append('<?php echo $this->security->get_csrf_token_name(); ?>', '<?php echo $this->security->get_csrf_hash(); ?>');
});
Also in JavaScript:
- encode url javascript
- ./src/index.js Line 0: Parsing error: Cannot find module '@babel/helper-validator-identifier'
- how to go back one directory in git bash
- jsdoc doesn't see all folders
- user defined exceptions in js
- how to comment out code in react js
- copy to clipboard javascript
- stop a video jquery
- jquery add remove class clicked element
- Material-ui add alert icon
- Converting from HttpClient to Native HTTP
- vue js error mixed spaces and tabs no-mixed-spaces-and-tabs
- document.querySelector
- ReferenceError: fs is not defined node js
- how to call function from another js file in react native
- disable long press on chrome
- recuperer une image dans la base de données avec angular
- how to run mocha tests on asynchronous functions in script
- js if char in string
- jspdf preview before download
- js get url parameter
- what is react native
- toggle js
- node list files in directory