WebCenter Spaces, files uploaded to Universal Content Management (UCM) larger then 2Mb fails. How to increase


Whenever uploading file larger than 2MB it is failing. 2MB is the default size.


Steps to increase the upload limit

1. On the WebCenter ORACLE_HOME and via WLST, do the following:

cd FMW_HOME/WEBCENTER_ORACLE_HOME/common/bin
./wlst.sh

connect()
exportMetadata(application='webcenter',server='WC_Spaces',toLocation='/tmp',docs='/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml')

Leave this window pending...

2. Edit webcenter-config.xml and assign the desired max file size to - uploadedFileMaxDiskSpace. The size is in bytes.

Example (2Gb):
cd /tmp
vi oracle/webcenter/webcenterapp/metadata/webcenter-config.xml

(...)
<webcenter:custom-attributes/>
<webcenter:uploadedFileMaxDiskSpace>2147483648</webcenter:uploadedFileMaxDiskSpace>
</webcenter:webcenter>
(...)

3. On the WebCenter ORACLE_HOME and via WLST (as in step 1)


importMetadata(application='webcenter',server='WC_Spaces',fromLocation='/tmp',docs='/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml')
disconnect()
exit()
Note:
Use the above exact WLST command or you may end exporting 2 XML files, if you use star (*) at the end. The above is the correct file to be changed.

4. Restart the WC_Spaces managed server, for the changes to be picked up.

5. Verify that you are now able to upload a file with more than 2Mb.




If you like please follow and comment