Home » Webcenter » Changing the maximum size for uploaded files in Oracle WebCenter
Changing the maximum size for uploaded files in Oracle WebCenter

Changing the maximum size for uploaded files in Oracle WebCenter

Those of you who have worked with Oracle WebCenter, have probably a content repository configured for your collaboration space. If you have tried uploading files in the document explorer task flow, you would notice that the maximum allowed file size is 2 MB, which is not what most of us are used to. As you can see the message says that the max. file size allowed is 2 GB, which is clearly a lie. So here is how to change it.

  1. Export your WebCenter Spaces metadata file using the following command(s)

cd <WC HOME>commonbin
wlst.bat

  1. Wait for the script to finish initializing, then type

connect(‘weblogic’, ‘welcome1′, ‘t3://<host>:7001′)

  1. Replace the values in quotes with yours of course, then

exportMetadata(application=’webcenter’, server=’WC_Spaces’, toLocation=’c:/’, docs=’/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml’)

  1. Then navigate to c:/oracle/webcenter/webcenterapp/metadata and edit the webcenter-config.xml file. Change the <webcenter:uploadedFileMaxDiskSpace> value, the default is 2097152 which is around 2 MB, so change it to 2147483648 (2 GB).

 

  1. Then import the modified file back, if you have closed the wlst session, repeat step 1 and 2 then type

importMetadata(application=’webcenter’,server=’WC_Spaces’,fromLocation=’c:/’,docs=’/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml’)

  1. Exit wlst

exit()

  1. Restart the WC_Spaces managed server

About Pradeep Sharma

Project Leader with 2+ Years in Webcenter Configuration & Installation, 6 Years in Oracle Database, PL/SQL, Forms & Reports

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>