管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-16 4feb15ada872ff4396805962ae0b7e5c419f2952
src/main/java/com/lf/server/service/all/CommonsFileuploadService.java
@@ -32,10 +32,10 @@
    private final static Log log = LogFactory.getLog(CommonsFileuploadService.class);
    public Object fileUpload(UserEntity ue, HttpServletRequest req, HttpServletResponse res) throws Exception {
    public Object fileUpload(HttpServletRequest req, HttpServletResponse res) throws Exception {
        List<FileItem> items = getFileItem(req, res);
        return copeFileItems(ue, items, req);
        return copeFileItems(items, req);
    }
    /**
@@ -70,11 +70,11 @@
    /**
     * 处理解析内容:处理普通表单域和文件表单域
     */
    private Object copeFileItems(UserEntity ue, List<FileItem> items, HttpServletRequest req) throws Exception {
    private Object copeFileItems(List<FileItem> items, HttpServletRequest req) throws Exception {
        Map<String, String> map = new HashMap<String, String>(3);
        List<FileInfoEntity> list = new ArrayList<FileInfoEntity>();
        String path = pathHelper.getTempPath(ue.getId());
        String path = pathHelper.getTempPath();
        for (FileItem item : items) {
            if (item.isFormField()) {
                String key = item.getFieldName();