commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Cook <bc...@printtime.com>
Subject Re: fileupload name issue
Date Mon, 25 Aug 2003 15:08:33 GMT
I believe this is a known issue.  I have run into this same issue 
before, and O'REILLY noted it on their examples site.

http://www.onjava.com/pub/a/onjava/2003/06/25/commons.html?page=3

I am not sure how to correct it in JSP  .  With servlets I include the 
following code to define the path.

String itemName = item.getName();   // Read in the name with the path
File fullFile = new File(item.getName());
File savedFile = new 
File(getServletContext().getRealPath("/"),fullFile.getName());
item.write(savedFile);


Mime
View raw message