fix(surveyor): optimasi save data inpeksi

This commit is contained in:
majid
2025-03-26 11:07:54 +07:00
parent f644002c79
commit fcbf2ba979
5 changed files with 328 additions and 158 deletions

View File

@@ -517,6 +517,19 @@
showLoadingSwal('Mengirim data ke server...');
const form = document.querySelector('form');
const formData = new FormData(form);
const fotoFields = [
'foto_gistaru',
'foto_bhumi',
'foto_argis_region',
'foto_tempat',
'foto_sentuh_tanahku',
'upload_gs'
];
fotoFields.forEach((field) => {
formData.delete(field);
});
$.ajax({
url: '{{ route('surveyor.store') }}',
type: 'POST',