diff options
author | Hrishi Hiraskar | 2016-10-27 20:20:18 +0530 |
---|---|---|
committer | Hrishi Hiraskar | 2016-10-27 20:20:18 +0530 |
commit | ac53ecb15182face19e21ce5b55e9dfcb775f5db (patch) | |
tree | 17678722aba3803697c5866580df4559619c88cd | |
parent | fa360b4b12b3238995a40470d2aded0fa9875bb5 (diff) | |
download | xcos-on-web-ac53ecb15182face19e21ce5b55e9dfcb775f5db.tar.gz xcos-on-web-ac53ecb15182face19e21ce5b55e9dfcb775f5db.tar.bz2 xcos-on-web-ac53ecb15182face19e21ce5b55e9dfcb775f5db.zip |
Integrated SendLog python server
-rwxr-xr-x | src/main/SendLog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/SendLog.py b/src/main/SendLog.py index 9aaf138..315ef0c 100755 --- a/src/main/SendLog.py +++ b/src/main/SendLog.py @@ -177,9 +177,9 @@ def event_stream(xcos_file_id): # Route that will process the file upload @app.route('/upload', methods=['POST']) def upload(): - # Get the name of the uploaded file + # Get the file file = request.files['file'] - # Check if the file is one of the allowed types/extensions + # Check if the file is not null if file: # Make the filename safe, remove unsupported chars client_id = len(xcos_file_list) |