diff --git a/app/__init__.py b/app/__init__.py index 97b9342..8a05cb7 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,3 +1,4 @@ +import os from flask import Flask UPLOAD_FOLDER = './app/upload' @@ -7,4 +8,7 @@ app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER app.jinja_env.auto_reload = True app.config["TEMPLATES_AUTO_RELOAD"] = True +app.config['SECRET_KEY'] = os.urandom(24) +app.config['SESSION_TYPE'] = 'filesystem' + from app import views diff --git a/app/templates/file.html b/app/templates/file.html index 5408fc0..0c10447 100644 --- a/app/templates/file.html +++ b/app/templates/file.html @@ -17,11 +17,13 @@