diff options
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/files/views.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/uploader/files/views.py b/uploader/files/views.py index 7d39cee..06481ee 100644 --- a/uploader/files/views.py +++ b/uploader/files/views.py @@ -84,10 +84,9 @@ def resumable_upload_post(): "statuscode": 200 }), 200 return jsonify({ - "message": "Some chunks were not uploaded!", - "error": "ChunksUploadError", - "error-description": "Some chunks were not uploaded!" - }) + "message": f"Chunk {int(_chunk)} uploaded successfully.", + "statuscode": 201 + }), 201 except Exception as exc:# pylint: disable=[broad-except] msg = "Error processing uploaded file chunks." app.logger.error(msg, exc_info=True, stack_info=True) |