Class FileUploadManager


  • public class FileUploadManager
    extends Object
    This manager allows to retrieve from a HttpServletRequest or a dictionary of parameters a collection of UploadedFile.

    This class must be used when silverpeas-fileUpload Silverpeas Javascript Plugin is used at the client-side.

    Author:
    Yohann Chastagnier
    • Method Detail

      • getUploadedFiles

        public static List<UploadedFile> getUploadedFiles​(javax.servlet.http.HttpServletRequest request,
                                                          User uploader)
        Retrieves from the given HttpServletRequest instance a collection of UploadedFile 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 of UploadedFile objects.
        Parameters:
        parameters - a dictionary of files parameters (title, description, ...)
        uploader - the user behind the upload of files.