Skip to content

Instantly share code, notes, and snippets.

View AmoghM's full-sized avatar

Amogh Mishra AmoghM

View GitHub Profile
@liulixiang1988
liulixiang1988 / app.py
Created August 14, 2015 03:02
upload multiple files in Flask
import os
# We'll render HTML templates and access data sent by POST
# using the request object from flask. Redirect and url_for
# will be used to redirect the user once the upload is done
# and send_from_directory will help us to send/show on the
# browser the file that the user just uploaded
from flask import Flask, render_template, request, redirect, url_for, send_from_directory
from werkzeug import secure_filename
# Initialize the Flask application