When try to upload file more
than 2MB from UCM taskflows into WebCenter Spaces, you will get following
error:-
The file could not be uploaded because it is too large. Enter the file name and location. Files must be less than 2 GB
|
According to PS3/PS4
documentation, its limit is 2MB not 2GB as error message misleading you.
How to increase the upload limit
1. Export
webcenter-config.xml file using following command:-
wls:/wc_domain/serverConfig>
exportMetadata(application='webcenter', server='WC_
Spaces',
toLocation='/tmp/', docs='/oracle/webcenter/webcenterapp/metadata/webce
nter-config.xml')
Executing operation: exportMetadata.
Operation "exportMetadata" completed. Summary of
"exportMetadata" operation is:
List of documents successfully transferred:
/oracle/webcenter/webcenterapp/metadata/mdssys/cust/site/webcenter/webcenter-con
fig.xml.xml
/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml
2 documents successfully transferred.
2. Open the webcenter-config.xml file in text editor in order to modify file upload size:-.
<webcenter:uploadedFileMaxDiskSpace>2097152</webcenter:uploadedFileMaxDiskSpace>
Please
note that the size is in bytes.
3. Once updated, run the following import command:-
wls:/wc_domain/serverConfig>
importMetadata(application='webcenter', server='WC_
Spaces',
fromLocation='/tmp/', docs='/oracle/webcenter/webcenterapp/metadata/web
center-config.xml')
Executing operation: importMetadata.
Operation "importMetadata" completed. Summary of
"importMetadata" operation is:
List of documents successfully transferred:
/oracle/webcenter/webcenterapp/metadata/mdssys/cust/site/webcenter/webcenter-con
fig.xml.xml
/oracle/webcenter/webcenterapp/metadata/webcenter-config.xml
2 documents successfully transferred.
It
works without restarting any Managed Server.
No comments:
Post a Comment