update
parent
3d76d6c41d
commit
48689f64c4
|
|
@ -198,6 +198,7 @@ class CSAPController extends Controller
|
|||
$destinationPath = public_path('uploads/lampiran');
|
||||
$current = Carbon::now()->format('Y/m/d');
|
||||
$path = $destinationPath . '/' . $current;
|
||||
$fileExtension = $file->getClientOriginalExtension();
|
||||
if($fileExtension != 'pdf'){
|
||||
|
||||
return response()->json(['validasi' => false,'message' => 'Maaf File Harus Berupa PDF!']);
|
||||
|
|
@ -224,6 +225,7 @@ class CSAPController extends Controller
|
|||
$destinationPath = public_path('uploads/berita_acara');
|
||||
$current = Carbon::now()->format('Y/m/d');
|
||||
$path = $destinationPath . '/' . $current;
|
||||
$fileExtension = $file->getClientOriginalExtension();
|
||||
if($fileExtension != 'pdf'){
|
||||
|
||||
return response()->json(['validasi' => false,'message' => 'Maaf File Harus Berupa PDF!']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue