USACE / USACE/cwms-data-api

Add file-upload field to Blob POST end-point

Open
#1,718 10 comments 0 reactions 2 assignees View on GitHub

@adamkorynta is already working on this.

Since Jun 2, 2026.

enhancement needs-follow-up
Dominant language
Java
Stars
28
Forks
25
Avg merge
4d 22h
Merged PRs (30d)
20

Description

When using the Swagger-ui to upload blobs it is inconvenient/impossible to upload large blobs - the data would have to be b64 encoded and pasted into the swagger ui. The current solution works for small files and bits of text but not for anything substantial

Add a new multi-part form content type that the user could select and then the user could select a file on disk and enter the necessary form details (office, id, media, desc)

Instead of adding a new content type to the existing end-point another option is a new form-upload end-point

It seems like this should be workable in swagger https://github.com/javalin/javalin/issues/859
Its unclear to me what the swagger-ui will look like if the existing end-point supports multipart-form and jsonv2 at the same time - will it show both sets of fields? That would be confusing and would make the separate end-point worthwhile.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.