Skip to content

feat: add file upload endpoint (BRIC-12)#13

Merged
Kaiohz merged 2 commits intomainfrom
BRIC-12/add-file-upload
Apr 12, 2026
Merged

feat: add file upload endpoint (BRIC-12)#13
Kaiohz merged 2 commits intomainfrom
BRIC-12/add-file-upload

Conversation

@Kaiohz
Copy link
Copy Markdown
Collaborator

@Kaiohz Kaiohz commented Apr 12, 2026

Summary

  • Add PUT object support to StoragePort + MinioAdapter via new put_object() method
  • Add POST /api/v1/files/upload endpoint accepting multipart form data (file + prefix)
  • Security: file type allowlist, filename sanitization, prefix path traversal validation, 50 MB size limit
  • Add UploadFileUseCase following hexagonal architecture
  • Update README with upload endpoint documentation

Test plan

  • 5 unit tests for UploadFileUseCase
  • 6 unit tests for upload route
  • 164 tests pass (0 failures)
  • Manual curl testing against Docker

DO NOT MERGE (user request)

Closes BRIC-12 (backend)

@Kaiohz Kaiohz merged commit f5013f9 into main Apr 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant