This commit is contained in:
2025-07-02 21:10:47 +08:00
parent 93d46459f9
commit 2fce6350c6
6 changed files with 72 additions and 35 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ function load_json(key) {
}
function post_file(path, file, file_name, callback) {
var head_path = "/api/v1/file";
var head_path = "/file";
// 创建FormData对象
const formData = new FormData();
formData.append("file", file, file_name); // 'file' 是后端接收文件的字段名