feat(attachments): enhance AttachmentService to support base64 file uploads and refactor file handling logic
This commit is contained in:
@@ -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'),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user