1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 15:11:08 +00:00

Modify upload error message (#355)

This commit is contained in:
feiniks
2020-05-28 17:55:34 +08:00
committed by GitHub
parent 8c29938bdb
commit fa3409ea04

View File

@@ -479,7 +479,7 @@ upload_api_cb(evhtp_request_t *req, void *arg)
parent_dir = g_hash_table_lookup (fsm->form_kvs, "parent_dir");
if (!parent_dir) {
seaf_debug ("[upload] No parent dir given.\n");
send_error_reply (req, EVHTP_RES_BADREQ, "Invalid URL.\n");
send_error_reply (req, EVHTP_RES_BADREQ, "Invalid parent dir.\n");
return;
}
relative_path = g_hash_table_lookup (fsm->form_kvs, "relative_path");
@@ -1091,7 +1091,7 @@ upload_ajax_cb(evhtp_request_t *req, void *arg)
parent_dir = g_hash_table_lookup (fsm->form_kvs, "parent_dir");
if (!parent_dir) {
seaf_debug ("[upload] No parent dir given.\n");
send_error_reply (req, EVHTP_RES_BADREQ, "Invalid URL.");
send_error_reply (req, EVHTP_RES_BADREQ, "Invalid parent dir.");
return;
}