社区
Web 开发
帖子详情
高分求助apache的fileupload问题
mars_lzg
2006-02-24 06:25:31
最近用apache的fileupload上传文件,文件是上传了,可是文件的内容不正确,怎么解决。
...全文
196
7
打赏
收藏
高分求助apache的fileupload问题
最近用apache的fileupload上传文件,文件是上传了,可是文件的内容不正确,怎么解决。
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
mars_lzg
2006-02-25
打赏
举报
回复
是啊,我也觉得邪门。
mars_lzg
2006-02-25
打赏
举报
回复
没人碰到和我一样的问题啊。
jdsbj2006
2006-02-24
打赏
举报
回复
建议使用jspsmartupload组件,非常好用
initialize();
upload
两步既可以搞定
doway
2006-02-24
打赏
举报
回复
倒,这么邪门儿?!
mars_lzg
2006-02-24
打赏
举报
回复
就是比如说一个文本文件里的内容本来是1111111。传完后文件内容变成upload了。
doway
2006-02-24
打赏
举报
回复
>文件是上传了,可是文件的内容不正确
楼主说一下是怎么个不正确法儿。
mars_lzg
2006-02-24
打赏
举报
回复
我是用下面方法上传的
DiskFileUpload fu = new DiskFileUpload();
fu.setSizeMax(100000000);
fu.setSizeThreshold(4096);
fu.setRepositoryPath(SystemConstant.upload_path_root);
List fileList = fu.parseRequest(request);
Iterator iter = fileList.iterator();
while (iter.hasNext())
{
FileItem item = (FileItem)iter.next();
item.write(new File(desfile));
}
com.springsource.org.
apache
.commons.
file
upload
-1.2.0.jar
jar包资源分享,你懂的: com.springsource.org.
apache
.commons.
file
upload
-1.2.0.jar
最全的common-
File
Upload
.jar包
最全的common-
File
Upload
.jar包,里面有三个jar包,绝对你够用
commons-
file
upload
-1.3.1
Apache
Commons
File
Upload
1.3.1 jar,里面包含通用的上传下载jar文件commons-
file
upload
-1.3.1.jar.
commons-
file
upload
-1.2.1.jar和commons-io-1.3.2.jar程序文件
commons-
file
upload
-1.2.1.jar和commons-io-1.3.2.jar 案例上传: http://hi.baidu.com/lichao77821/blog
commons-
file
upload
.jar和commons-io.jar包
做文件上传程序时,通过会用到的两个jar包!
Web 开发
81,122
社区成员
341,744
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章