You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jm...@apache.org on 2004/01/13 07:33:42 UTC
cvs commit: jakarta-commons/fileupload/src/java/org/apache/commons/fileupload package.html
jmcnally 2004/01/12 22:33:42
Modified: fileupload/src/java/org/apache/commons/fileupload
package.html
Log:
Fix example showing FileItem.write to use a File object.
Issue#: http://issues.apache.org/bugzilla/show_bug.cgi?id=22643
Revision Changes Path
1.4 +2 -2 jakarta-commons/fileupload/src/java/org/apache/commons/fileupload/package.html
Index: package.html
===================================================================
RCS file: /home/cvs/jakarta-commons/fileupload/src/java/org/apache/commons/fileupload/package.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- package.html 27 Apr 2003 17:30:06 -0000 1.3
+++ package.html 13 Jan 2004 06:33:42 -0000 1.4
@@ -47,7 +47,7 @@
// save comment and filename to database
...
// write the file
- fi.write("/www/uploads/" + fileName);
+ fi.write(new File("/www/uploads/", fileName));
}
</pre>
<p>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org