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
I have a Rocket application accepting a multi-part-form with a file attachment. The files will also be of type octet-stream but if the caller does not specify this when posting ( python example in particular ), the temp_file has no content_type and the size of the data saved is incorrect. Examples with curl work properly since the content_type is added.
Ideal Solution
Add a configuration option, much limits, to indicate the default content_type for a TempFile if not specified by the caller.
Why can't this be implemented outside of Rocket?
Not really
Are there workarounds usable today?
The only work around is to force the caller to always specify content_type for the attachment.
Alternative Solutions
No response
Additional Context
No response
System Checks
I do not believe that this feature can or should be implemented outside of Rocket.
I was unable to find a previous request for this feature.
The text was updated successfully, but these errors were encountered:
What's missing?
I have a Rocket application accepting a multi-part-form with a file attachment. The files will also be of type octet-stream but if the caller does not specify this when posting ( python example in particular ), the temp_file has no content_type and the size of the data saved is incorrect. Examples with curl work properly since the content_type is added.
Ideal Solution
Add a configuration option, much limits, to indicate the default content_type for a TempFile if not specified by the caller.
Why can't this be implemented outside of Rocket?
Not really
Are there workarounds usable today?
The only work around is to force the caller to always specify content_type for the attachment.
Alternative Solutions
No response
Additional Context
No response
System Checks
The text was updated successfully, but these errors were encountered: