Backend Track • Intermediate • 6 mins review

Feat: Support Document upload and preview

Adds API support for uploading document files and storing them in the shared uploads directory.

Scenario Goal & Context

Goal: Accept multipart uploads, persist the file on disk, and return the public path so the frontend can render a preview.

Background: Users need to attach document files directly from the dashboard and preview them later.

Changed Files (2)

  • src/controllers/DocumentUploadController.ts +15 -1
  • src/services/DocumentStorageService.ts +15 -0

Ready to practice reviewing this PR?

Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.

Start Review Session