22 feb 2012

WebCenter Spaces - Changing the Maximum File Upload Size

By default WebCenter Spaces PS4 should be setup to allow uploads of files up to 2Gb. But there is a little bug that restricts the file to be only "2Mb".


Those are the steps to change the default "max-filesize" to 2Gb
  1. Locate your WebCenter wlst.sh or wlst.cmd and execute it.

  2. Connect to admin server with this command:

    connect('weblogic','<weblogic-password>','t3://<ip-admin-server>:7001')

  3. Now export the metadata that defines the "uploadedFileMaxDiskSpace" parameter.

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

  4. Modify the file "webcenter-config.xml" and locate the line with this parameter.

    <webcenter:uploadedFileMaxDiskSpace>2097152</webcenter:uploadedFileMaxDiskSpace>

  5. Save the file and proceed to the upload, reconnect to wlst.sh

  6. Connect again to admin server

    connect('weblogic','<weblogic-password>','t3://<ip-admin-server>:7001')

  7. Execute the upload command:

    importMetadata(application='webcenter',server='WC_Spaces',fromLocation='/home/oracle',docs='/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml')

  8. Restart WC_Spaces managed node and is ready to test.