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

Image file with variants issue for URL without file extension #47

Open
czim opened this issue Nov 5, 2019 · 0 comments
Open

Image file with variants issue for URL without file extension #47

czim opened this issue Nov 5, 2019 · 0 comments
Labels

Comments

@czim
Copy link
Owner

czim commented Nov 5, 2019

Storing an image file from an URL that has no file extension may result in an Imagine\Exception\InvalidArgumentException being thrown, with the message Saving image in "" format is not supported, please use one of the following extensions.

This occurs because imagine uses the file name to determine the type, instead of deriving the mime type. This may require altering czim/file-handling, or a config setting may be added to enforce file extensions based on mimetype, where omitted.

@czim czim added the bug label Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant