Created
September 19, 2018 06:51
-
-
Save domibarton/df2b7d1135c49dc99622283645f88478 to your computer and use it in GitHub Desktop.
Flask upload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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