> ## Documentation Index
> Fetch the complete documentation index at: https://visaflo.ca/knowledge-base/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload a case file

> Upload one file into a VisaFlo case.

`POST https://api.visaflo.app/api/public/case/:caseId/file/upload`

Send one `file` field as `multipart/form-data`. Files are stored in the case's `api` folder. The maximum request size is 50 MB.

```bash theme={null}
curl -X POST "https://api.visaflo.app/api/public/case/VFLO_CASE_ID/file/upload" \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@/path/to/passport.pdf"
```

Returns `201` with `fileRegistryId`, `originalName`, `size`, and `logicalPath`.
