日期:2014-05-18  浏览次数:20711 次

正在研究上传下载组件
听说jspSmartUpload可以是吧?
有源码吗??研究一下
顺便说一下有其它上传下载源码吗??
研究半天了,还没搞明白   最好有注释的

------解决方案--------------------
我用过common-fileupload,好像比smartupload好些。
------解决方案--------------------
apache 的coommons系列有一个
struct同样有一个FormFile可用于上传
两个都开源
------解决方案--------------------
研究之前先理解http的multipart/formdata提交数据格式.
http://www.ietf.org/rfc/rfc1867.txt

把下面的内容解析出来,你也可以写smartupload,common-file-upload了.

Content-type: multipart/form-data, boundary=AaB03x

--AaB03x
content-disposition: form-data; name= "field1 "

Joe Blow
--AaB03x
content-disposition: form-data; name= "pics "; filename= "file1.txt "
Content-Type: text/plain

... contents of file1.txt ...
--AaB03x--


------解决方案--------------------
smartupload 比较好使!
------解决方案--------------------
都差不多,研究明白一個就行了。smartupload可能資料多些