Google News
logo
Flask - Interview Questions
How can we create a form for file uploading?
We can create a form for file uploading by using following code:
 
<html>  
   <body>  
           <form action = "http://localhost:5000/uploader" method = "POST" enctype = "multipart/form-data">  
             <input type = "file" name = "file" />  
             <input type = "submit"/>  
           </form>          
   </body>  
</html>

 

Advertisement