public class UploadedFile extends java.lang.Object
Constructors Constructor Description
Modifier and Type Method Description
()Returns the client file name.
()Returns the file content type.
()Return the spool file name.
()Steals the uploaded spool file.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSpoolFileNamepublic java.lang.String getSpoolFileName()Return the spool file name.
This is the location on the local (server) filesystem where the uploaded file is temporarily stored. Unless you call
stealSpoolFile(), this file is deleted automatically.
getClientFileNamepublic java.lang.String getClientFileName()Returns the client file name.
This is the location that was indicated by the browser.
Note: Depending on the browser this is an absolute path or only the file name.
getContentTypepublic java.lang.String getContentType()Returns the file content type.
Returns the content mime-type that was sent along with the uploaded file.
stealSpoolFilepublic void stealSpoolFile()Steals the uploaded spool file.
By stealing the spooled file, it is no longer automatically deleted by JWt.