Class FileUploadService
java.lang.Object
fr.paris.lutece.portal.service.fileupload.FileUploadService
This service provides utils to extract parameters from multipart request using Jakarta Commons FileUpload.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFileNameOnly(fr.paris.lutece.portal.service.upload.MultipartItem fileItem) Return the file name, without its whole path, from the file item.
-
Method Details
-
getFileNameOnly
Return the file name, without its whole path, from the file item. This should be used has FileItem.getName can return the whole path.- Parameters:
fileItem- the fileItem to process- Returns:
- the name of the file associated
-