aboutsummaryrefslogtreecommitdiff
path: root/uploader
diff options
context:
space:
mode:
Diffstat (limited to 'uploader')
-rw-r--r--uploader/files/views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/uploader/files/views.py b/uploader/files/views.py
index 76ac212..7d39cee 100644
--- a/uploader/files/views.py
+++ b/uploader/files/views.py
@@ -23,7 +23,11 @@ def resumable_upload_get():
if Path(chunks_directory(fileid),
chunk_name(filename, chunk)).exists():
- return "OK"
+ return jsonify({
+ "chunk": chunk,
+ "message": f"Chunk exists.",
+ "statuscode": 200
+ }), 200
return jsonify({
"message": f"Chunk {chunk} was not found.",