Package org.compiere.util
Class FileUpload
java.lang.Object
org.compiere.util.FileUpload
Deprecated, for removal: This API element is subject to removal in a future version.
Web File Upload utility.
Based on code like:
- Version:
- $Id: FileUpload.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFileUpload
(javax.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Upload File from requesr -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.ecs.xhtml.form
createForm
(String action) Deprecated, for removal: This API element is subject to removal in a future version.Create Upload Form.byte[]
getData()
Deprecated, for removal: This API element is subject to removal in a future version.getError()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getParameter
(String parameterName) Deprecated, for removal: This API element is subject to removal in a future version.Get MultiPart Form Parameter.int
getParameterAsInt
(String parameterName) Deprecated, for removal: This API element is subject to removal in a future version.Get Multi Part Parameter As InttoString()
Deprecated, for removal: This API element is subject to removal in a future version.String Representation
-
Field Details
-
log
Deprecated, for removal: This API element is subject to removal in a future version.Logger
-
-
Constructor Details
-
FileUpload
public FileUpload(javax.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Upload File from requesr- Parameters:
request
- request
-
-
Method Details
-
createForm
Deprecated, for removal: This API element is subject to removal in a future version.Create Upload Form. You need to add the (hidden) parameter- Parameters:
action
- form action- Returns:
- form
-
getData
public byte[] getData()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- Returns the data.
-
getFileName
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- Returns the actual fileName (without path).
-
getError
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- Returns the error message or null.
-
getParameter
Deprecated, for removal: This API element is subject to removal in a future version.Get MultiPart Form Parameter. Assumes single line (no cr)Request -----------------------------7d433475038e Content-Disposition: form-data; name="R_Request_ID" 1000000 -----------------------------7d433475038e--
- Parameters:
parameterName
- name of parameter- Returns:
- parameter or null of mot found
-
getParameterAsInt
Deprecated, for removal: This API element is subject to removal in a future version.Get Multi Part Parameter As Int- Parameters:
parameterName
- name- Returns:
- result or 0
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.String Representation
-