diff options
author | Hrishi Hiraskar | 2016-12-23 23:10:56 +0530 |
---|---|---|
committer | Hrishi Hiraskar | 2016-12-23 23:10:56 +0530 |
commit | 16722d9829a4f9c55a7a4b8bc702c3ec595388e5 (patch) | |
tree | d0c722111c6d8bed044180dedb6771a61e58aed7 | |
parent | bc9f97bcc6fbe57174431ee8790ebf2e62c95494 (diff) | |
download | xcos-on-web-16722d9829a4f9c55a7a4b8bc702c3ec595388e5.tar.gz xcos-on-web-16722d9829a4f9c55a7a4b8bc702c3ec595388e5.tar.bz2 xcos-on-web-16722d9829a4f9c55a7a4b8bc702c3ec595388e5.zip |
Bug fix for uploads/ directory
-rwxr-xr-x | SendLog.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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']) |