Skip to content

Allow specifying the ContentType of the uploaded file #7843

@N-Olbert

Description

@N-Olbert

Product

Strawberry Shake

Is your feature request related to a problem?

Within Hot Chocolate, the IFile interface, which is the server-side counterpart of the Upload scalar, has a property called ContentType. This property is populated with the Content-Type header of the HttpRequest itself, e.g., application/pdf.

Currently, this value cannot be specified via Strawberry Shake.

The solution you'd like

Allow specifying the content type of the uploaded file / the corresponding multipart http request from Strawberry Shake.
Therefore, StrawberryShake.Upload should be extended with a new member: string? ContentType.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions