R2 파일 업로드

This commit is contained in:
김보곤
2026-03-11 17:49:16 +09:00
parent bbaeefb6b5
commit 0ab3d5ab88
12 changed files with 1145 additions and 845 deletions

View File

@@ -83,14 +83,25 @@ public function trash()
}
/**
* Download file
* Download file (attachment)
*/
public function download(int $id)
{
$service = new FileStorageService;
$file = $service->getFile($id);
return $file->download();
return $file->download(inline: false);
}
/**
* View file inline (이미지/PDF 브라우저에서 바로 표시)
*/
public function view(int $id)
{
$service = new FileStorageService;
$file = $service->getFile($id);
return $file->download(inline: true);
}
/**