public abstract class MultiFileUploadUtil extends Object
MultiFileUploadControl
.Modifier and Type | Field and Description |
---|---|
static Pattern |
PATTERN_INVALID_CHARACTERS_FILE_NAME
Pattern that determines whether the characters in the file name are invalid.
|
static String |
RESOURCE_PATH
Control's resource path.
|
static String |
SUBCONTROL_PREFIX
Prefix to be used in generated sub-controls.
|
Constructor and Description |
---|
MultiFileUploadUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getContentType(String filePath)
Gets content type based on the given file path.
|
static String |
getTempPath(String relativePath)
Gets an temporary path based on relative path.
|
static String |
getUploadPath(String relativePath)
Gets an upload path based on relative path.
|
public static final String SUBCONTROL_PREFIX
public static final Pattern PATTERN_INVALID_CHARACTERS_FILE_NAME
public static final String RESOURCE_PATH
public static String getUploadPath(String relativePath)
relativePath
- the relative path.public static String getTempPath(String relativePath)
relativePath
- the relative path.public static String getContentType(String filePath) throws IOException
filePath
- the file path.IOException
- if an IO error occured.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.