xD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
786 B

from flask import Flask, render_template, request
from datetime import datetime
import re
import fnmatch
import os
import meinheld
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = "./dataset/"
app.config['MAX_CONTENT_LENGTH'] = 10000000000 # 10GB
# Return our beautiful Bootstrap webpage. That we totally have.
@app.route('/')
def upload():
return render_template('index.html')
# What happens when someone uploads a thingy
@app.route('/upload', methods=['POST'])
def upload_file():
if request.method == 'POST':
f = request.files['file']
# Return success webpage
return render_template('successful.html')
else:
# No POST Found
return render_template('error.html')
if __name__ == '__main__':
app.run()