summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHrishi Hiraskar2016-10-27 20:20:18 +0530
committerHrishi Hiraskar2016-10-27 20:20:18 +0530
commitac53ecb15182face19e21ce5b55e9dfcb775f5db (patch)
tree17678722aba3803697c5866580df4559619c88cd
parentfa360b4b12b3238995a40470d2aded0fa9875bb5 (diff)
downloadxcos-on-web-ac53ecb15182face19e21ce5b55e9dfcb775f5db.tar.gz
xcos-on-web-ac53ecb15182face19e21ce5b55e9dfcb775f5db.tar.bz2
xcos-on-web-ac53ecb15182face19e21ce5b55e9dfcb775f5db.zip
Integrated SendLog python server
-rwxr-xr-xsrc/main/SendLog.py4
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)