1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-24 20:48:01 +00:00

Merge pull request #774 from haiwen/fix_error_code

Fix size error code
This commit is contained in:
feiniks
2025-09-18 17:26:36 +08:00
committed by GitHub

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) {
error_code = ERROR_SIZE;
error_code = SEAF_HTTP_RES_TOOLARGE;
err_msg = "File size is too large.\n";
goto err;
}