修复一些问题

This commit is contained in:
kevin
2025-07-07 15:51:53 +08:00
parent c67877e811
commit a97378d9de
5 changed files with 19 additions and 18 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ function load_json(key) {
}
function post_file(path, file, file_name, callback) {
var head_path = "/file";
//console.log(file)
var head_path = "/file/upload";
// 创建FormData对象
const formData = new FormData();
formData.append("file", file, file_name); // 'file' 是后端接收文件的字段名