Tuesday, 29 October 2013

Webcenter Spaces - Warning: The file upload failed. The file could not be uploaded because it is too large. Enter the file name and location. Files must be less than 2GB

Webcenter Spaces - Warning: The file upload failed. The file could not be uploaded because it is too large. Enter the file name and location. Files must be less than 2GB


Webcenter Spaces 

Warning: The file upload failed.
The file could not be uploaded because it is too large.
--------------------------------------------------------
Enter the file name and location. Files must be less than 2GB


This is a known bug which is now resolved in 11.1.1.6. 

In case facing issue uploading documents over 2 MB in size, you can follow below steps to increase upload size upto 2 GB.


1. On the WebCenter ORACLE_HOME and via WLST, do the following:

cd FMW_HOME/WEBCENTER_ORACLE_HOME/common/bin
./wlst.sh

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

Leave this window pending...

2. Edit webcenter-config.xml and assign the desired max file size to - uploadedFileMaxDiskSpace. The size is in bytes.

Example (2Gb):
cd /tmp
vi oracle/webcenter/webcenterapp/metadata/webcenter-config.xml

(...)
<webcenter:custom-attributes/>
<webcenter:uploadedFileMaxDiskSpace>2147483648</webcenter:uploadedFileMaxDiskSpace>
</webcenter:webcenter>
(...)

3. On the WebCenter ORACLE_HOME and via WLST (using the same screen as in step 1):

From Step 1... 

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

4. Restart the WC_Spaces managed server, for the changes to be picked up.


5. Verify that you are now able to upload a file with more than 2Mb.

More details on Changing maximum file upload size

No comments:

Post a Comment