-
Notifications
You must be signed in to change notification settings - Fork 3
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
Content-Type assumption not done if the file don't have extension #567
Comments
It doesn't assume that? The |
Do we have to supply a default content type, if none makes sense? |
Imho If no Content-Type could be determined application/octet-stream or anything like this seams a good fit. |
Fixed in 2.6.0. |
PHP version: x.y.z (hint:
php --version
)Description
There is an issue within psr7 in the MultipartStream class inside createElement method (https://github.com/guzzle/psr7/blob/815698d9f11c908bc59471d11f642264b533346a/src/MultipartStream.php#L141C1-L141C1).
There is an assumption a content-type is returned no matter what...
How to reproduce
Try to upload a multipart file without extension
Possible Solution
Add a default content-type for files without extensions l'île proposes in PR #566
Additional context
The text was updated successfully, but these errors were encountered: