|
@@ -172,7 +172,7 @@ class Controller extends BaseController
|
|
|
$uid = Uuid::uuid6();
|
|
|
$originalFileName = $file->getClientOriginalName();
|
|
|
$fileName = $uid . "." . $file->extension();
|
|
|
- $tempPath = Storage::putFileAs($path, $file, $fileName);
|
|
|
+ $tempPath = Storage::disk('custom')->putFileAs($path, $file, $fileName);
|
|
|
$data = [
|
|
|
'path' => $tempPath,
|
|
|
'fileName' => $fileName,
|
|
@@ -191,7 +191,7 @@ class Controller extends BaseController
|
|
|
}
|
|
|
|
|
|
public function downloadFileByPath($file, $path){
|
|
|
- return Storage::response($path . '/' . $file);
|
|
|
+ return Storage::disk('custom')->response($path . '/' . $file);
|
|
|
}
|
|
|
public function viewUploadedFile(Request $request, $file){
|
|
|
return $this->downloadFileByPath($file, BaseModel::FILE_PATH);
|