main
Ilham Wara Nugroho 2025-09-12 09:39:29 +07:00
parent d05cb90d04
commit 5eea7b20af
1 changed files with 43 additions and 41 deletions

View File

@ -203,14 +203,13 @@
icon.removeClass('fa-eye-slash').addClass('fa-eye'); // Kembalikan ikon icon.removeClass('fa-eye-slash').addClass('fa-eye'); // Kembalikan ikon
} }
}); });
});
const myDropzone = new Dropzone(".dropzone", { const myDropzone = new Dropzone(".dropzone", {
url: "{{ url('uploadTempImage') }}", // URL ke controller kamu url: "{{ url('uploadTempImage') }}", // URL ke controller kamu
method: "POST", method: "POST",
// xhrFields: { xhrFields: {
// withCredentials: true withCredentials: true
// }, },
headers: { headers: {
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'), 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'),
'X-Requested-With': 'XMLHttpRequest' 'X-Requested-With': 'XMLHttpRequest'
@ -251,5 +250,8 @@
}); });
} }
}); });
});
</script> </script>
@endsection @endsection