You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Ling Kok Choon <ko...@yahoo.com> on 2001/10/03 13:09:05 UTC
FileItem (write method) Error - Turbine Version 2.1
Hi All,
I use turbine version 2.1 to build a web
application, and use FileItem class for file upload. I
found a error / bug when using the method write(
String path ).
When i code like:
FileItem fi =
data.getParameters().getFileItem("file1");
.....
.....
fi.write("C:\download");
It work !
When i code like:
FileItem fi =
data.getParameters().getFileItem("file1");
.....
.....
String path = "C:\download"
fi.write(path);
It also work !
but when the code is like :
FileItem fi =
data.getParameters().getFileItem("file1");
.....
.....
String path = "C:\downloed"
fi.write( path.replace('e','a'));
Turbine will copy the file to the location
C:\download but size = 0.
is it a bug ?
regards,
Kok Choon.
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org