You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Product
Strawberry Shake
Is your feature request related to a problem?
Within Hot Chocolate, the
IFile
interface, which is the server-side counterpart of theUpload
scalar, has a property calledContentType
. 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
.The text was updated successfully, but these errors were encountered: