Troubleshoot: File upload

By default, WebSphere Commerce allows you to upload a file of up to 10 MB in size. You can upload a file where the size exceeds the limit by changing the maximum upload size.

  1. WebSphere Commerce configuration file. Refer to an individual component's documentation to determine if it should be configured through the Configuration Manager or through the WebSphere Commerce configuration file.">Open the WebSphere Commerce configuration file in a text editor.

  2. Locate the Attachment element.

  3. 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 size you want (in bytes) and command_name is one of StoreBannerUpdate, StoreLogoUpdate, ContractUpload, and so on, as applicable.

  4. Save your changes and close the file.

  5. Next, open the WebSphere Web server plug-in configuration file, WAS_installdir/config/cells/plugin-cfg.xml, for editing.

  6. Locate the ServerCluster element for your server cluster and change the value of its PostSizeLimit attribute as follows
    <ServerCluster ... Name="
    cluster" PostSizeLimit="
    new_size" ...>
    

    where cluster is cell _ instance_Cluster and new_size is the desired size (in bytes) as before. (See the Manually editing the plug-in configuration topic in the WAS Information Center for more information about editing the plug-in configuration and to the WebSphere Commerce Installation Guide for information about clustering.)

  7. Save your changes and close the file.

  8. Restart the Web server and your WebSphere Commerce instance to apply the changes.

Related tasks

Ensure that the Web server is started

Start and stopping WebSphere Commerce