Python Flask Upload and Display Image | Flask tutorial

Published: 07 June 2022
on channel: Red Eyed Coder Club
35,990
407

This Python Flask tutorial is about uploading image to Flask project.
In this video I used flask-reuploaded package to manage uploaded images, and
flask-wtf library to create a Flask Form for uploading image, and validate users' input.

to install flask-reuploaded and flask-wtf:

pip install flask-reuploaded flask-wtf

or

poetry add flask-reuploaded flask-wtf


Follow me @:
Telegram: https://t.me/red_eyed_coder_club
Twitter:   / codereyed  
Facebook: https://fb.me/redeyedcoderclub


=== 📎 The source code is available via Patreon ===
  / 68005058  


Timecodes:

00:00 - Demo & description of the Flask uploading image project
01:14 - flask-reuploaded description
01:53 - Configuration of Flask app for uploading images
03:44 - Creating a Flask Form to upload images
05:28 - Validating Form and saving images
06:20 - Getting URL of an image with send_from_directory() function
08:50 - HTML layout for image uploading


✴️✴️✴️ Useful links ✴️✴️✴️
Poetry tutorial:    • Python Poetry tutorial: How to use Py...  

Python Flask Upload and Display Image | Flask tutorial
   • Python Flask Upload and Display Image...  

#python #flask #redeyedcoderclub