当我将一个文件从Postman客户端上传到服务器(部署在远程计算机上的spring应用程序)时,我可以上传该文件,没有任何问题。RequestMethod.POST,data= {"multipart/form-data"})
public @ResponseBody字符串handleFileUpload(@RequestParam(“文件”) MultipartFile文件){。。。。}
我正在使用jQuery文件上传,并将maxNumberOfFiles设置为1。但是,它允许一次上传多个文件。文档中写道...The maxNumberOfFiles option depends on the getNumberOfFiles option, which is defined by the UI and AngularJS