有段时间没有写技术博客了,最近遇到了Apache Commons的FileUpload。确实是个不错的文件传输的类库。这里记录一点点需要注意的事项。
这里使用的1.2.2版本。文档里提到了这样一点:
DiskFileUpload
Deprecated. UseServletFileUpload
together with DiskFileItemFactory
instead.
老一些版本使用的都使用这个类。
新版本的使用可以参考以下博客:
http://blog.csdn.net/zx404068203/article/details/6033101
http://www.blogjava.net/chenglu/archive/2009/09/23/apache_fileupload.html