淘先锋技术网

首页 1 2 3 4 5 6 7

单文件传输:

@RequestMapping(value = "/", method = RequestMethod.POST)

public Object FTP(HttpServletRequest request,

@RequestParam(value = "file", required = false) MultipartFile files) {

}

多文件传输:

@RequestMapping(value = "/", method = RequestMethod.POST)
public Object uploadFile(HttpServletRequest request,
  @RequestParam(value = "File", required = false) List<MultipartFile> files) {

}


以及通过使用BufferInputStream和BufferOutputSteam来读取文件信息等。