修复小文件上传问题

This commit is contained in:
lnk
2026-07-17 15:40:35 +08:00
parent 439b22243a
commit c0405b5e48
4 changed files with 52 additions and 14 deletions

View File

@@ -7876,7 +7876,11 @@ bool SendFileWebAuto(const std::string& id,
<< " -> use default upload URL (cloud path=" << file_cloudpath << ")\n";
// 实际上传调用
SendFileWeb(WEB_FILEUPLOAD, local_path, file_cloudpath, out_filename,2);
if (!SendFileWeb(WEB_FILEUPLOAD, local_path, file_cloudpath, out_filename,2)) {
std::cerr << "[SendFileWebAuto][ERROR] File upload failed: "
<< local_path << std::endl;
return false;
}
std::cout << "[SendFileWebAuto] File upload complete: " << out_filename << std::endl;