def upload_file(): return render_template('index.html') In our case, we are going to store our variable inside static folder which we created earlier on. Using the above line, we are configuring the variable UPLOAD_FOLDER to the path where we wanna store our files. Here, we are creating an app variable and setting it to an instance of the Flask class app.config = "static/" We are now importing a function called as secure_filename which secures our filename before storing it in our system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |