Increase file upload size in webcenter spaces application

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://:7001′)

->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.

20480

-> Save the file and proceed to the upload, reconnect to wlst.sh and Connect again to admin server

connect(‘weblogic’,’pwd’,’t3://:7001′)

-> 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.

Vinay

I am an Oracle ACE in Oracle ADF/Webcenter. Sr Java Consultant-working on Java/J2EE/Oracle ADF/Webcenter Portal/ content and Hibernate for several years. I'm an active member of the OTN JDeveloper/Webcenter forum. Passionate about learning new technologies. I am here to share my knowledge. Give your views and suggestion on [email protected] .

More Posts - Website

Follow Me:
TwitterLinkedInGoogle PlusYouTube