By default, WebSphere Commerce allows you to upload a file of up to 10 MB in size. If you need to upload a file whose size exceeds that limit:
- Open the WebSphere Commerce configuration file in a text editor.
- Locate the Attachment element.
- Within the Attachment element, locate the Command element corresponding to the type of file you are attempting to upload and change the value of its maxuploadsize attribute as follows:
<Command maxuploadsize="new_size" name="command_name" .../>
where new_size is the desired size (in bytes) and command_name is one of StoreBannerUpdate, StoreLogoUpdate, ContractUpload, and so on, as applicable.
- Save your changes and close the file.
- Next, open the WebSphere Web server plug-in configuration file, WAS_installdir/config/cells/plugin-cfg.xml, for editing.
- Locate the ServerCluster element for your server cluster and change the value of its PostSizeLimit attribute as follows:
<ServerCluster ... Name="cluster_name" PostSizeLimit="new_size" ...>
where cluster_name iscell_name_instance_name_Cluster and new_size is the desired size (in bytes) as before. (Refer to the WebSphere Application Server information center for more information on editing the plug-in configuration and to the WebSphere Commerce Installation Guide for information on clustering.)
- Save your changes and close the file.
- Restart the Web server and your WebSphere Commerce instance to apply the changes.