fix(surveyor): perbaikkan upload foto data pembanding

This commit is contained in:
majid76
2025-03-08 14:11:19 +07:00
committed by putrakuningan
parent 0976794aa2
commit a227b8ec29
2 changed files with 1 additions and 4 deletions

View File

@@ -1356,6 +1356,7 @@ class SurveyorController extends Controller
try {
DB::beginTransaction();
// dd($request->all());
$maxSize = getMaxFileSize('Foto');
$validator = $request->validate([
'permohonan_id' => 'required|exists:permohonan,id',
@@ -1363,8 +1364,6 @@ class SurveyorController extends Controller
'dokument_id' => 'required',
'name_foto_objek' => 'nullable|string',
'nomor_registrasi' => 'required|string',
'foto_objek' => 'nullable|jpeg|png|jpg|gif|svg|max:'.$maxSize,
'foto_objek_pembanding.*' => 'nullable|jpeg|png|jpg|gif|svg|max:'.$maxSize,
]);
$tanahBangunanTypes = ['KAPAL', 'PESAWAT', 'KENDARAAN', 'ALAT BERAT', 'MESIN'];

View File

@@ -355,8 +355,6 @@
const preview = newCell.querySelector('img');
if (preview) {
preview.id = newImageId;
preview.src = '';
preview.accept = ".jpg,.jpeg,.png";
preview.classList.add('hidden');
input.onchange = function() {
const file = this.files[0];