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
}
});
});
const myDropzone = new Dropzone(".dropzone", {
url: "{{ url('uploadTempImage') }}", // URL ke controller kamu
method: "POST",
// xhrFields: {
// withCredentials: true
// },
xhrFields: {
withCredentials: true
},
headers: {
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'),
'X-Requested-With': 'XMLHttpRequest'
@ -251,5 +250,8 @@
});
}
});
});
</script>
@endsection