Hi,
I read (in the mail archive) that for small uploaded files (smaller than
10kb) the files was in memory and not writed on the disk.

I also read that to grap it I had to use ParameterParser.getFileItem(String
key).

This is a part of my code (it upload a file and then rename it) :
...
 TurbineUpload.parseRequest(data.getRequest(), data.getParameters(), path);
 FileItem myitem = null;
 myitem = data.getParameters().getFileItem("local_file");
 String fileName = new File(myitem.getFileName()).getName();
 myitem.getStoreLocation().renameTo(new File(path + "/" + fileName));


The problem appears with small files because myitem.getStoreLocation()
returns null (because it isn't on the disk).

So my question is : how to force to grab the file on the disk.

Thanks for your time.

Hervé




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to