结合flash,可以方便的实现多文件上传。而且可以一次性选择多个文件。
这个例子使用了三个三方库:
Apache Commons FileUpload http://commons.apache.org/fileupload/
Apache Commons IO http://commons.apache.org/io/
SWFUpload http://swfupload.org/
下面开始贴代码。
首先是供上传用的form
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>SWFUpload Demos - Simple Demo href="../css/default.css" rel="stylesh