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 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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: