migrasi upload file ke s3 amazon

This commit is contained in:
Server D3 Linksehat
2025-08-25 09:14:11 +07:00
parent df02dc0c5f
commit ba2490147f
8 changed files with 167 additions and 34 deletions

View File

@@ -129,6 +129,7 @@ class PersonController extends Controller
'type' => 'avatar',
'name' => File::getFileName('avatar', $family->id, $request->file('user_avatar')),
'extension' => $request->file('user_avatar')->getClientOriginalExtension(),
'source' => env('FILESYSTEM_DISK'),
'path' => $pathFileAvatar,
'created_by' => auth()->user()->id,
'updated_by' => auth()->user()->id,
@@ -141,6 +142,7 @@ class PersonController extends Controller
'type' => 'dataDiri',
'name' => File::getFileName('dataDiri', $family->id, $request->file('verification_file')),
'extension' => $request->file('verification_file')->getClientOriginalExtension(),
'source' => env('FILESYSTEM_DISK'),
'path' => $pathFileVerification,
'created_by' => auth()->user()->id,
'updated_by' => auth()->user()->id,