|
@@ -78,4 +78,17 @@ public class SceneFileController{
|
|
|
String params) throws Exception {
|
|
|
return sceneFileBuildService.uploadFile(file, params);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 单个文件上传
|
|
|
+ * @param file
|
|
|
+ * @param params
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("testUpload")
|
|
|
+ public ResultData testUpload(@RequestParam(value = "file",required = false) MultipartFile file,
|
|
|
+ String params) throws Exception {
|
|
|
+ file.transferTo(new File("/home/backend/tomcat/modeling-control/logs/" + file.getOriginalFilename()));
|
|
|
+ return ResultData.ok();
|
|
|
+ }
|
|
|
}
|