aboutsummaryrefslogtreecommitdiff
path: root/uploader
diff options
context:
space:
mode:
Diffstat (limited to 'uploader')
-rw-r--r--uploader/files/views.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/uploader/files/views.py b/uploader/files/views.py
index cd5f00f..76ac212 100644
--- a/uploader/files/views.py
+++ b/uploader/files/views.py
@@ -56,12 +56,10 @@ def resumable_upload_post():
if _targetfile.exists():
return jsonify({
- "message": (
- "A file with a similar unique identifier has previously been "
- "uploaded and possibly is/has being/been processed."),
- "error": "BadRequest",
- "statuscode": 400
- }), 400
+ "uploaded-file": _targetfile.name,
+ "message": "File was uploaded successfully!",
+ "statuscode": 200
+ }), 200
try:
chunks_directory(_fileid).mkdir(exist_ok=True, parents=True)