public class UploadHelper
extends java.lang.Object
构造器和说明 |
---|
UploadHelper() |
限定符和类型 | 方法和说明 |
---|---|
static java.io.File |
getFileFromFront(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String uploadPath,
java.lang.String fileName)
从前端发送过来的请求获得文件
|
public static java.io.File getFileFromFront(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String uploadPath, java.lang.String fileName) throws java.lang.Exception
req
- 发送的请求res
- 获得的响应uploadPath
- 文件上传到的路径fileName
- 文件名及后缀java.lang.Exception