users@glassfish.java.net

Re: How to access fileName in javax.servlet.http.Part

From: <glassfish_at_javadesktop.org>
Date: Mon, 12 Apr 2010 11:02:19 PDT

org.apache.catalina.fileupload.PartItem is part of the web profile. Note that it should be fileupload and not fileUpload.

However, this is an implementation class, so if you use that, your app will not be portable. Can you just use Part.getInputStream to get its content? Also, for small files, there may not be a physical file, since file can be uploaded to memory.
[Message sent by forum member 'kchung']

http://forums.java.net/jive/thread.jspa?messageID=396544