Flask-Images
Flask-Images copied to clipboard
Send from directory
Hi, can you do this with send_from_directory?
Can you explain further?
I have an endpoint for example /test_images/itemid/imagename.jpg
That endpoint grabs the item from the database and then using the database it puts together a path that is sent to send_from_directory and returns the proper file
For that example above, the path that is sent to send_from_directory is imgpath/item.createdmonth/item.createdyear/imagename.jpg
I need to be able to run queries but I still want to reszie the resulting image