From 16722d9829a4f9c55a7a4b8bc702c3ec595388e5 Mon Sep 17 00:00:00 2001 From: Hrishi Hiraskar Date: Fri, 23 Dec 2016 23:10:56 +0530 Subject: Bug fix for uploads/ directory --- SendLog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SendLog.py b/SendLog.py index 91354b6..3be5d3e 100755 --- a/SendLog.py +++ b/SendLog.py @@ -18,6 +18,9 @@ app = Flask(__name__, static_folder='webapp/') # This is the path to the upload directory app.config['UPLOAD_FOLDER'] = 'uploads/' +# Make the upload directory if not available +subprocess.Popen('mkdir -p ' + app.config['UPLOAD_FOLDER'], shell = True) + # These are the extension that we are accepting to be uploaded app.config['ALLOWED_EXTENSIONS'] = set(['zcos', 'xcos']) -- cgit