Skip to content

Generated type for file uploads #264

Description

@ntdoJanneck

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions