How to Upload Files with Flask Using Python

Sdílet
Vložit
  • čas přidán 13. 06. 2021
  • Hey guys! Welcome back, in this video I will be showing you how to upload files using Python and Flask. We're going to use Flask to build our website, Flask_WTF, and WTForms to create our forms and Werkzeug to securely save our files. There are links down below for the code and the official Flask documentation.
    Code Repo: github.com/arpanneupane19/Fla...
    Official Flask Documentation: flask.palletsprojects.com/en/...
    If you don't know about Flask, Flask is a Python web framework that is lightweight and easy to use. It is a good choice for beginners, and it can be used to create web applications that are scalable. Flask can be used with WTForms to create forms on pages and these forms can be used to upload files as well.
    My GitHub: github.com/arpanneupane19
    My Website: arpanneupane.com
    My Programming Gear :
    Keyboard: amzn.to/42vXkxh
    Laptop: amzn.to/3CkAP3W
    Laptop Stand: amzn.to/3X116Oi
    Desk: amzn.to/43wmIEt
    Monitor: amzn.to/42BAaFH
    Monitor Arm: amzn.to/3NR0APS
    Chair: amzn.to/42vvKAn
    Desk Mat/Mousepad: amzn.to/43AhKqj
    Microphone: amzn.to/45RuQ43
    Headphones: amzn.to/445sf4R
    #Python // #Flask // #LearnToCode

Komentáře • 84

  • @abhishekravoor
    @abhishekravoor Před rokem +9

    Watched a tones of videos on YT for this but couldn't find anything as perfect as this!! Thanks a lot mate such a crisp and clear video❤❤

  • @kerimsever6674
    @kerimsever6674 Před 2 lety +5

    I have been searching for a while and this is the best video by far for a flask upload function

  • @austinallen4184

    “Made it smaller so you could see” 😅 excellent video man, love how fast you go through it, perfect speed. There’s other tuts covering the same content that are 30+ min long and not even as in depth as this

  • @hazadus
    @hazadus Před rokem +1

    Thanks, just what I was looking for!

  • @astropgn
    @astropgn Před rokem +2

    This is awesome! I have an iphone but I use Windows, so it is always a hassle to send files from my phone to my computer. There are apps, but nothing is straightforward. So this helped me a lot. I serve this file locally and whenever I want to send a file from my phone to my computer, I just access the page and send it. So easy

  • @NeverTrustTheMarmot
    @NeverTrustTheMarmot Před rokem +1

    Great tutorial, thank you!

  • @Loving_Earth

    Thanks man , excellent explanation and i subscribed 😉

  • @iyerky

    Loved it - simple and effective. Thank you!

  • @djangodude9252
    @djangodude9252 Před rokem +1

    Great video man. Very Impressive

  • @Perera006
    @Perera006 Před 2 lety

    Hey bro say I wanted to now use this image through a maze solver I created, how would I output the end image?

  • @joshuapaquera9184
    @joshuapaquera9184 Před 28 dny

    Wow! Thanks!!! HUGE help!!!

  • @nathaliealvarezhernandez1824

    very well explained, thank you :D

  • @reginecyrille1668
    @reginecyrille1668 Před 2 lety +1

    Thank you for this video, great!

  • @404errorpagenotfound.6
    @404errorpagenotfound.6 Před 2 lety +1

    Just found this channel, nice job on the video.

  • @waiitwhaat

    AMAZING tutorial.

  • @samirahuseynli6956
    @samirahuseynli6956 Před 2 lety

    thank you so much! you saved my day!!

  • @MarkDemeter-lc2uk

    Thans but how can I avoid the re-routing after upload? I just wanted to display a flash.

  • @angelomilansantos6342
    @angelomilansantos6342 Před rokem +1

    how about deleting file in static folder?

  • @viserlesetoiles5024
    @viserlesetoiles5024 Před rokem

    Thanks to you I finally was able to understand my mistakes. Isolating the form tags from each other by wrapping them inside divs made my "Choose file" button not clickable

  • @satishgaire
    @satishgaire Před 3 lety +5

    Great video!