Class FileUpload

java.lang.Object
org.compiere.util.FileUpload

@Deprecated(forRemoval=true, since="11") public class FileUpload extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    protected CLogger
    Deprecated, for removal: This API element is subject to removal in a future version.
    Logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileUpload(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 Type
    Method
    Description
    static org.apache.ecs.xhtml.form
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create Upload Form.
    byte[]
    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.
     
    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 Int
    Deprecated, for removal: This API element is subject to removal in a future version.
    String Representation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • log

      protected CLogger 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

      public static 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. 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

      public String getFileName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      Returns the actual fileName (without path).
    • getError

      public String getError()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      Returns the error message or null.
    • getParameter

      public String getParameter(String parameterName)
      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

      public int getParameterAsInt(String parameterName)
      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

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      String Representation
      Overrides:
      toString in class Object
      Returns:
      info