Package eu.webtoolkit.jwt.servlet
Class UploadedFile
java.lang.Object
eu.webtoolkit.jwt.servlet.UploadedFile
Details about a file uploaded with a request to a resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the client file name.Returns the file content type.Return the spool file name.void
Steals the uploaded spool file.
-
Constructor Details
-
UploadedFile
public UploadedFile()
-
-
Method Details
-
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. -
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.
-
getContentType
Returns the file content type.Returns the content mime-type that was sent along with the uploaded file.
-
stealSpoolFile
public void stealSpoolFile()Steals the uploaded spool file.By stealing the spooled file, it is no longer automatically deleted by JWt.
-