📅  最后修改于: 2022-03-11 15:02:35.391000             🧑  作者: Mango
var myDropzone = new Dropzone("div#mydropzone", {
url: "/controller/method_receive_files",
sending: function (file, xhr, formData) {
formData.append('security->get_csrf_token_name(); ?>', 'security->get_csrf_hash(); ?>');
}
});
//OR...
myDropzone.on('sending', function(file, xhr, formData) {
formData.append('security->get_csrf_token_name(); ?>', 'security->get_csrf_hash(); ?>');
});