1、前端向后台传送文件的过程其实就是,前端将文件流传给后台,后台接收文件流,然后将其写到后台服务器上。处理文件时,后台程序只需要读取服务器上的文件即可。
2、需要引入两个jar包:commons-fileupload-1.3.1.jar和commons-io-2.4.jar。
html代码:
1、前端向后台传送文件的过程其实就是,前端将文件流传给后台,后台接收文件流,然后将其写到后台服务器上。处理文件时,后台程序只需要读取服务器上的文件即可。
2、需要引入两个jar包:commons-fileupload-1.3.1.jar和commons-io-2.4.jar。
html代码: