Package io.milton.http
Interface FileItem
public interface FileItem
Represents an item which has been uploaded in a form POST
-
Method Details
-
getContentType
String getContentType() -
getFieldName
String getFieldName()The name of the field which declared the file control- Returns:
-
getInputStream
InputStream getInputStream()To read the uploaded file- Returns:
-
getName
String getName()The name of the uploaded file- Returns:
-
getSize
long getSize()The size of the uploaded file- Returns:
-
getOutputStream
OutputStream getOutputStream()To allow writing to the uploaded file. Not always supported- Returns:
-