Skip to content

Instantly share code, notes, and snippets.

@domibarton
Created September 19, 2018 06:51
Show Gist options
  • Save domibarton/df2b7d1135c49dc99622283645f88478 to your computer and use it in GitHub Desktop.
Save domibarton/df2b7d1135c49dc99622283645f88478 to your computer and use it in GitHub Desktop.
Flask upload
from flask import Flask, request
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
@app.route('/upload', methods=['POST'])
def upload_file():
f = request.files['the_file']
# Do your fancy xls conversion here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment