diff options
author | Frederick Muriuki Muriithi | 2025-01-17 09:50:42 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-01-17 09:50:42 -0600 |
commit | 2fad8089f93ae618b5465582a8a9b4aad29bf7de (patch) | |
tree | 60c4c29bd081428e51c1a1094e477a5b9948433f /uploader/files | |
parent | a59f002fb959745603ea65f490ccacb598013fc8 (diff) | |
download | gn-uploader-2fad8089f93ae618b5465582a8a9b4aad29bf7de.tar.gz |
Make all responses JSON responses.
Diffstat (limited to 'uploader/files')
-rw-r--r-- | uploader/files/views.py | 6 |
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.", |