Package fr.paris.lutece.util.filesystem
Class UploadUtil
java.lang.Object
fr.paris.lutece.util.filesystem.UploadUtil
This class provides utilities for uploaded files
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcleanFileName(String strName) Removes special characters contained in the file namestatic StringcleanFilePath(String strPath) Removes special characters contained in a file path.
-
Method Details
-
cleanFileName
Removes special characters contained in the file name- Parameters:
strName- the file name- Returns:
- strClearName the cleaned file name
-
cleanFilePath
Removes special characters contained in a file path. This method performs the same transformation as cleanFileName but leaves out the slashes.- Parameters:
strPath- The path to clean- Returns:
- The cleaned path
-