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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]