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

use url to detect extension #23

Open
tobias533 opened this issue Apr 22, 2018 · 0 comments
Open

use url to detect extension #23

tobias533 opened this issue Apr 22, 2018 · 0 comments

Comments

@tobias533
Copy link

Hello,

I try to use for images an url without an extension (jpg,png...), e.g.
http://127.0.0.1:5000/picture/123456789abc
This is necessary since I use an id in the url and the algorithm searches in the background an corresponding image.

For example, if I use

this works fine. The url which was created
http://127.0.0.1:5000/picture/123456789abc
sends the content type image/jpeg and shows the image in the browser.

If I add the resize command

I've got the exception "Only JPG or PNG are allowed...."

If I debug Flask Resize, I see that flask modules uses the url to detect the extension and not the content type of the send content. For me it looks like an issue. Maybe an alternative fix exists?

Thanks
Tobias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant