Package org.silverpeas.core.io.upload
Class FileUploadManager
- java.lang.Object
-
- org.silverpeas.core.io.upload.FileUploadManager
-
public class FileUploadManager extends Object
This manager allows to retrieve from aHttpServletRequest
or a dictionary of parameters a collection ofUploadedFile
.This class must be used when
silverpeas-fileUpload
Silverpeas Javascript Plugin is used at the client-side.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<UploadedFile>
getUploadedFiles(Map<String,String[]> parameters, User uploader)
Retrieves from the given dictionary of uploaded files parameters a collection ofUploadedFile
objects.static List<UploadedFile>
getUploadedFiles(javax.servlet.http.HttpServletRequest request, User uploader)
Retrieves from the givenHttpServletRequest
instance a collection ofUploadedFile
objects.
-
-
-
Method Detail
-
getUploadedFiles
public static List<UploadedFile> getUploadedFiles(javax.servlet.http.HttpServletRequest request, User uploader)
Retrieves from the givenHttpServletRequest
instance a collection ofUploadedFile
objects.- Parameters:
request
- an incoming HTTP request.uploader
- the user behind the upload of files.
-
getUploadedFiles
public static List<UploadedFile> getUploadedFiles(Map<String,String[]> parameters, User uploader)
Retrieves from the given dictionary of uploaded files parameters a collection ofUploadedFile
objects.- Parameters:
parameters
- a dictionary of files parameters (title, description, ...)uploader
- the user behind the upload of files.
-
-