修复一些问题
This commit is contained in:
Vendored
+2
-1
@@ -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' 是后端接收文件的字段名
|
||||
|
||||
Reference in New Issue
Block a user