feat(attachments): enhance AttachmentService to support base64 file uploads and refactor file handling logic

This commit is contained in:
2026-06-25 16:09:46 -03:00
parent 17799122e2
commit 2ce21799c7
3 changed files with 149 additions and 29 deletions

View File

@@ -20,7 +20,7 @@ class S3TestController extends Controller
public function store(StoreS3TestFileRequest $request): JsonResponse
{
$attachment = $this->attachmentService->store(
$request->file('file'),
$request->file('file') ?? (string) $request->validated('file_base64'),
$request->validated('path'),
);