1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-22 11:39:05 +00:00

Fix size error code

This commit is contained in:
Heran Yang
2025-09-18 09:25:02 +00:00
parent a1ba8d7db7
commit 954a536322

View File

@@ -2585,7 +2585,7 @@ upload_headers_cb (evhtp_request_t *req, evhtp_headers_t *hdr, void *arg)
} }
if (seaf->max_upload_size > 0 && content_len > seaf->max_upload_size) { if (seaf->max_upload_size > 0 && content_len > seaf->max_upload_size) {
error_code = ERROR_SIZE; error_code = SEAF_HTTP_RES_TOOLARGE;
err_msg = "File size is too large.\n"; err_msg = "File size is too large.\n";
goto err; goto err;
} }