Package com.iizix.comm
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
- Field SummaryFieldsModifier and TypeFieldDescription- static final StringThe base context path of the upload service: "/|izupload".
- Method SummaryModifier and TypeMethodDescriptionGets the upload directory where files are placed in a staging area.- intReturns the maximum size of any uploaded file in MB.- booleanChecks if file upload is enabled or not.
- Field Details- BASE_CONTEXT_PATHThe base context path of the upload service: "/|izupload".- See Also:
 
 
- Method Details- isFileUploadEnabledboolean isFileUploadEnabled()Checks if file upload is enabled or not.- Returns:
- The upload enablement flag, false by default.
 
- getMaximumUploadFileSizeint getMaximumUploadFileSize()Returns the maximum size of any uploaded file in MB.- Returns:
- The file size in MB, default 50 MB.
 
- getFileUploadStagingDirectoryString getFileUploadStagingDirectory()Gets the upload directory where files are placed in a staging area.- Returns:
- The directory name, relative the server's current directory.