Skip to content

Generated type for file uploads #264

@ntdoJanneck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions