Uses of Class
com.jalios.jcms.upload.FileUploadOptions
Packages that use FileUploadOptions
Package
Description
Provides context classes available in every request, you can extends them or use them as javabean.
Contains the javabean classes uses to process HTTP request (aka form handlers).
-
Uses of FileUploadOptions in com.jalios.jcms.context
Methods in com.jalios.jcms.context with parameters of type FileUploadOptionsModifier and TypeMethodDescriptionJcmsContext.getUploadedFiles(String field, FileUploadOptions options) Performs upload for the given field. -
Uses of FileUploadOptions in com.jalios.jcms.handler
Methods in com.jalios.jcms.handler with parameters of type FileUploadOptionsModifier and TypeMethodDescriptionprotected voidJcmsUploadFormHandler.setFileDocuments(String fieldName, String[] documents, FileUploadOptions options) Sets the file documents from the field name and the default language.protected voidJcmsUploadFormHandler.setFileDocuments(String fieldName, String userLang, String[] documents, FileUploadOptions options) Sets the file documents for the specified field in the specified language.protected voidJcmsUploadFormHandler.setFileDocumentsML(String fieldName, String[] documents, FileUploadOptions options) Sets the file documents from the field name for all the defined languages to the site.protected voidJcmsFormHandler.updateUploadedFields(String fieldName, String[] values, FileUploadOptions options) Perform upload then, replace all values with value MultipartRequest.MULTIPART_UPLOAD with the real File realtive path. -
Uses of FileUploadOptions in com.jalios.jcms.upload
Fields in com.jalios.jcms.upload declared as FileUploadOptionsMethods in com.jalios.jcms.upload that return FileUploadOptionsModifier and TypeMethodDescriptionFileUploadOptions.autoRotate(Boolean autoRotate) Set wether image file should be automatically rotated based on its EXIF information.static FileUploadOptionsFileUploadOptions.getFileDocumentUploadOptions()Utility method to retrieve a new FileUploadOptions instance suitable for FileDocument upload.FileUploadOptions.setAuthorizedExtensions(String... authorizedExtensions) Set the extensions authorized for upload.FileUploadOptions.setAuthorizedExtensions(Set<String> authorizedExtensions) Set the extensions authorized for upload.FileUploadOptions.setContentType(String contentType) Set the content type to use, regardless of value received in request.FileUploadOptions.setFileDocument(boolean fileDocument) Set wether the upload will be performed for FileDocument or for any other use.FileUploadOptions.setPreferredClass(Class<? extends FileDocument> preferredClass) Set the FileDocument class to preferred for upload if enabled and authorized.Methods in com.jalios.jcms.upload with parameters of type FileUploadOptionsModifier and TypeMethodDescriptionvoidDocUploadInfo.doUpload(File file, FileUploadOptions options) Performs upload of the specified file with corresponding options.voidDocUploadInfo.doUpload(org.apache.commons.fileupload.FileItem item, FileUploadOptions options) Performs upload of the specified FileItem with corresponding options.UploadManager.getUploadedFiles(JcmsContext ctxt, String field, FileUploadOptions options) Performs upload for file received for the specified field.