liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package framework.fileUpload;
 
import java.util.List;
 
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
 
import framework.base.FrameBaseController;
import framework.fileUpload.FileUploadHelper.UploadFile;
 
@Controller
public class DemoUploadController extends FrameBaseController {
 
    @RequestMapping(value = "demoFileUpload")
    public String upload() throws Exception {
        
        System.err.println(this.getRequest().getParameter("fileName"));
        
        List<UploadFile> list = this.getAllUploadFile();
        
        if(list !=null){
            for(UploadFile file : list){
                System.err.print(file.getFile().getAbsolutePath());
            }
        }
 
        return null;
    }
}