Sunday, March 13, 2011

Increasing file upload size using af:inputFile

                <context-param>
<description>Max size of a file that will be uploaded in ram (10MB)</description>
<param-name>oracle.adf.view.faces.UPLOAD_MAX_MEMORY</param-name>
<param-value>10485760</param-value>
</context-param>
<context-param>
<description>Max size of a file that will be uploaded on HDD (100MB)</description>
<param-name>oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE</param-name>
<param-value>104857600</param-value>
</context-param>
<context-param>
<description>The path of the dir where the files will be uploaded</description>
<param-name>oracle.adf.view.faces.UPLOAD_TEMP_DIR</param-name>
<param-value>/ADFGlassPane/UploadedFiles</param-value>
</context-param>

No comments: