Interface responsible for processing file uploads. An Apache Trinidad application has a single
UploadedFileProcessor
instance. It is accessible from the {@link org.apache.myfaces.trinidad.context.RequestContext}, but will be invoked automatically by the framework as needed. Developers can replace the standard processor using the
trinidad-config.xml
file.
To configure file uploads, the default instance supports three context initialization parameters :
- org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY: the maximum amount of memory that can be used in a single request to store uploaded files. (Default of 100K)
- org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE: the maximum amount of disk space that can be used in a single request to store uploaded files. (Default of 2000K)
- org.apache.myfaces.trinidad.UPLOAD_TEMP_DIR: the name of a directory to store temporary files. (Defaults to the user's temporary directory)
@see org.apache.myfaces.trinidad.model.UploadedFile
@author The Oracle ADF Faces Team