mittwald / mittwald/api-client-js

Generated type for file uploads

Open
#264 0 comments 0 reactions 1 assignee View on GitHub

@mfal is already working on this.

Since Sep 4, 2026.

Dominant language
TypeScript
Stars
2
Forks
0
Avg merge
4d 16h
Merged PRs (30d)
4

Description

When a route has only a file upload for the request, for example multipart/form-data, the type generated for that request is not really accurate.

Example

The route /v2/actions/detect-phishing-email on the mittwald API documentation has a multipart/form-data file upload, but the generated type of the data object in the request is { [p: string]: unknown } | undefined.

This means that a file that was uploaded through a file field or a file dropzone has to be typed as unkown:
Image

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.