Package org.apache.ofbiz.base.util
Class HttpRequestFileUpload
java.lang.Object
org.apache.ofbiz.base.util.HttpRequestFileUpload
HttpRequestFileUpload - Receive a file upload through an HttpServletRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doUpload
(HttpServletRequest request, String fileType) Do upload.Gets content type.getFieldValue
(String fieldName) Gets field value.Gets filename.Gets filepath.Gets override filename.void
setOverrideFilename
(String ofName) Sets override filename.void
setSavePath
(String savePath) Sets save path.
-
Constructor Details
-
HttpRequestFileUpload
public HttpRequestFileUpload()
-
-
Method Details
-
getOverrideFilename
Gets override filename.- Returns:
- the override filename
-
setOverrideFilename
Sets override filename.- Parameters:
ofName
- the of name
-
getFilename
Gets filename.- Returns:
- the filename
-
getFilepath
Gets filepath.- Returns:
- the filepath
-
setSavePath
Sets save path.- Parameters:
savePath
- the save path
-
getContentType
Gets content type.- Returns:
- the content type
-
getFieldValue
Gets field value.- Parameters:
fieldName
- the field name- Returns:
- the field value
-
doUpload
Do upload.- Parameters:
request
- the request- Throws:
IOException
- the io exception
-