uncoment s3 di storeVersion2
This commit is contained in:
parent
79a568a008
commit
cb0574a8ef
@ -1435,18 +1435,18 @@ class DashboardController extends Controller
|
|||||||
];
|
];
|
||||||
$fd = FileDirectory::create($payload);
|
$fd = FileDirectory::create($payload);
|
||||||
|
|
||||||
// $disk = Storage::disk('s3');
|
$disk = Storage::disk('s3');
|
||||||
$imageName = $this->buildStoredFileName(
|
$imageName = $this->buildStoredFileName(
|
||||||
$fd->nama_dokumen ?? null,
|
$fd->nama_dokumen ?? null,
|
||||||
$fd->file_directory_id,
|
$fd->file_directory_id,
|
||||||
$uploadedFile->getClientOriginalExtension()
|
$uploadedFile->getClientOriginalExtension()
|
||||||
);
|
);
|
||||||
// $disk->putFileAs(
|
$disk->putFileAs(
|
||||||
// $path,
|
$path,
|
||||||
// $uploadedFile,
|
$uploadedFile,
|
||||||
// $imageName,
|
$imageName,
|
||||||
// ['visibility' => 'private']
|
['visibility' => 'private']
|
||||||
// );
|
);
|
||||||
$fd->update([
|
$fd->update([
|
||||||
'file' => $path . '/' . $imageName
|
'file' => $path . '/' . $imageName
|
||||||
]);
|
]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user