保存进度!
This commit is contained in:
		@@ -1,3 +1,7 @@
 | 
				
			|||||||
# regulatory-management-system
 | 
					# 产险厦门分公司规章制度管理工具
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# 概述
 | 
				
			||||||
 | 
					
 | 
				
			||||||
产险厦门分公司规章制度管理工具。
 | 
					产险厦门分公司规章制度管理工具。
 | 
				
			||||||
@@ -21,8 +21,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
 | 
				
			|||||||
import org.springframework.web.bind.annotation.RequestParam;
 | 
					import org.springframework.web.bind.annotation.RequestParam;
 | 
				
			||||||
import org.springframework.web.bind.annotation.ResponseBody;
 | 
					import org.springframework.web.bind.annotation.ResponseBody;
 | 
				
			||||||
import org.springframework.web.multipart.MultipartFile;
 | 
					import org.springframework.web.multipart.MultipartFile;
 | 
				
			||||||
import org.springframework.web.bind.annotation.RequestMethod;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
// @SuppressWarnings( "unused" )
 | 
					// @SuppressWarnings( "unused" )
 | 
				
			||||||
@Controller
 | 
					@Controller
 | 
				
			||||||
@@ -99,6 +97,17 @@ public class FileUpload
 | 
				
			|||||||
        return result;
 | 
					        return result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * 接收上传文件,并保存到临时目录:
 | 
				
			||||||
 | 
					     * 1、临时目录下再用sessionID作为子目录保存文件。
 | 
				
			||||||
 | 
					     * 2、保存时不更改文件名,会覆盖同名文件。
 | 
				
			||||||
 | 
					     * 3、MultipartFile参数形参名称必须和请求form中file标签的name属性一致,否则值为null。
 | 
				
			||||||
 | 
					     * 4、返回值为接收结果和文件保存绝对路径。
 | 
				
			||||||
 | 
					     * @param fileName
 | 
				
			||||||
 | 
					     * @param file
 | 
				
			||||||
 | 
					     * @param request
 | 
				
			||||||
 | 
					     * @return
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    @RequestMapping( path = "/file-upload.do" )
 | 
					    @RequestMapping( path = "/file-upload.do" )
 | 
				
			||||||
    @ResponseBody
 | 
					    @ResponseBody
 | 
				
			||||||
    public FileUploadResult saveUploadFile(
 | 
					    public FileUploadResult saveUploadFile(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user