Class CmsUploader

  • All Implemented Interfaces:
    I_CmsUploader

    public class CmsUploader
    extends java.lang.Object
    implements I_CmsUploader
    File uploader utility class. Takes care of the browser specifics when uploading files asynchronously.

    • Constructor Summary

      Constructors 
      Constructor Description
      CmsUploader()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void uploadFiles​(java.lang.String uploadUri, java.lang.String targetFolder, boolean isRootPath, java.lang.String postCreateHandler, java.util.List<CmsFileInfo> filesToUpload, java.util.List<java.lang.String> filesToUnzip, boolean keepFileNames, I_CmsUploadDialog dialog)
      Uploads the given files to the given URI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • uploadFiles

        public void uploadFiles​(java.lang.String uploadUri,
                                java.lang.String targetFolder,
                                boolean isRootPath,
                                java.lang.String postCreateHandler,
                                java.util.List<CmsFileInfo> filesToUpload,
                                java.util.List<java.lang.String> filesToUnzip,
                                boolean keepFileNames,
                                I_CmsUploadDialog dialog)
        Description copied from interface: I_CmsUploader
        Uploads the given files to the given URI.

        Specified by:
        uploadFiles in interface I_CmsUploader
        Parameters:
        uploadUri - the upload URI
        targetFolder - the target folder
        isRootPath - true if the target folder is given as a root path
        postCreateHandler - the post-create handler class, with parameters
        filesToUpload - the files to upload
        filesToUnzip - the files to unzip
        keepFileNames - don't perform filename translation on the server if this is true
        dialog - the dialog instance
        See Also:
        org.opencms.gwt.client.ui.input.upload.I_CmsUploader#uploadFiles(java.lang.String, java.lang.String, boolean, java.lang.String, java.util.List, java.util.List, org.opencms.gwt.client.ui.input.upload.I_CmsUploadDialog)