Interface IWSUploader

  • All Known Subinterfaces:
    IWSUploaderService

    public interface IWSUploader
    Interface used to handle uploads to the server from a client, e.g. profile images. In order to be able to accept an upload from a client, it must beforehand be registered by a client session to get a IWSUploaderAcceptor instance. This instance is required to perform validation if upload is enabled and of what is being uploaded and to where.
    Author:
    Christopher Mindus
    • Method Detail

      • isFileUploadEnabled

        boolean isFileUploadEnabled()
        Checks if file upload is enabled or not.
        Returns:
        The upload enablement flag, false by default.
      • getMaximumUploadFileSize

        int getMaximumUploadFileSize()
        Returns the maximum size of any uploaded file in MB.
        Returns:
        The file size in MB, default 50 MB.
      • getFileUploadStagingDirectory

        java.lang.String getFileUploadStagingDirectory()
        Gets the upload directory where files are placed in a staging area.
        Returns:
        The directory name, relative the server's current directory.