Class HttpRequestFileUpload

java.lang.Object
org.apache.ofbiz.base.util.HttpRequestFileUpload

public class HttpRequestFileUpload extends Object
HttpRequestFileUpload - Receive a file upload through an HttpServletRequest
  • Constructor Details

    • HttpRequestFileUpload

      public HttpRequestFileUpload()
  • Method Details

    • getOverrideFilename

      public String getOverrideFilename()
      Gets override filename.
      Returns:
      the override filename
    • setOverrideFilename

      public void setOverrideFilename(String ofName)
      Sets override filename.
      Parameters:
      ofName - the of name
    • getFilename

      public String getFilename()
      Gets filename.
      Returns:
      the filename
    • getFilepath

      public String getFilepath()
      Gets filepath.
      Returns:
      the filepath
    • setSavePath

      public void setSavePath(String savePath)
      Sets save path.
      Parameters:
      savePath - the save path
    • getContentType

      public String getContentType()
      Gets content type.
      Returns:
      the content type
    • getFieldValue

      public String getFieldValue(String fieldName)
      Gets field value.
      Parameters:
      fieldName - the field name
      Returns:
      the field value
    • doUpload

      public boolean doUpload(HttpServletRequest request, String fileType) throws IOException
      Do upload.
      Parameters:
      request - the request
      Throws:
      IOException - the io exception