DEV Community

[Comment from a deleted post]
Collapse
 
avra profile image
Avra • Edited

This needs a longer answer than I am able to provide right now but I want to point you in the right direction.
You could write a route that accepts POST requests. Look into flask.request.files.
You can either save your image to the filesystem, like path in static/ or to a database. I'm working on a project that will use images as well and I'm planning to convert them to base64 and then write them to a database since my Flask app runs on a ephemeral filesystem (Heroku).
If you haven't already I highly suggest you read Miguel Grinberg's Mega Tutorial for Flask.
Note I'm also just a beginner in Flask and this is just how I would approach the matter.

Collapse
 
ironcladdev profile image
Conner Ow

Yeah, I'm sorta of a beginner in flask as well. I guess I'll look into that. Thanks!