Hi,
I have problems with UploadService.
When I try to upload a ".gif" or ".txt" file FileItem
writes 0 bytes long file. When I upload ".doc" or
".jpg" file the file uploads successfully(I haven't
experimented with other file types).
My Turbine Version is 2.1(the one that comes with TDK
2.1)
Here's the code that I use to upload the file:
FileItem fileItem =
data.getParameters().getFileItem("file");
fileItem.write(TurbineServlet.getRealPath("uploaded.file"));
The form in the template file is with "enctype" set to
"multipart/form-data".
Thanks in advance for any help I get!
Hristo Kosev
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]