文件上传大小配置

ADF默认上传附件大小为500k,若想上传大文件需要配置web.xml

<context-param>
        <!-- Maximum memory per request (in bytes) -->
        <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
        <!-- Use 50M -->
        <!-- 限制最大上传为50M -->
        <param-value>51200000</param-value>
    </context-param>
    <context-param>
        <!-- Maximum disk space per request (in bytes) -->
        <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name>
        <!-- Use 50M -->
        <param-value>51200000</param-value>
    </context-param>

 

你可能感兴趣的:(文件上传大小配置)