fix(surveyor): perbaikkan upload foto data pembanding

This commit is contained in:
majid76
2025-03-08 14:11:19 +07:00
parent 0956f5a4a9
commit e3f668fdc8
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'];