Requirement – To increase the maximum file upload size in WebCenter Spaces
Implementation – In my spaces application, we are not able to upload file size more than 2 MB. Requirement to upload upto 20MB. WebCenter Spaces PS4 should be setup to allow uploads up to 2Gb.After digging a littler found this
Those are the steps to change the default “max-filesize” to your requirement.For this you need to export metadata for application.Check out my previous blog entry on Change metadata in MDS/ Metadata command for weblogic.
->Find webcenter wlst.sh or wlst.cmd and runit.
->Connect to admin server with this command:
connect(‘weblogic’,’pwd’,’t3://
->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’)
-> Modify the file “webcenter-config.xml” and locate the line with this parameter.
-> Save the file and proceed to the upload, reconnect to wlst.sh and Connect again to admin server
connect(‘weblogic’,’pwd’,’t3://
-> Execute the upload command:
importMetadata(application=’webcenter’,server=’WC_Spaces’,fromLocation=’/home/oracle’,
docs=’/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml’)
-> Restart WC_Spaces managed server .
That’s it.Now you can upload upto 20 MB. Change the requirement according to your specification.
Happy learning with Vinay in techartifact.