Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying the ContentType of the uploaded file #7843

Open
N-Olbert opened this issue Dec 17, 2024 · 0 comments
Open

Allow specifying the ContentType of the uploaded file #7843

N-Olbert opened this issue Dec 17, 2024 · 0 comments

Comments

@N-Olbert
Copy link
Contributor

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.

@N-Olbert N-Olbert changed the title Strawberry Shake: Allow specify the ContentType of the uploaded file. Allow specifying the ContentType of the uploaded file Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant