Troubleshoot and support > Management Center
Troubleshoot: Catalog Upload file size limit
By default, the maximum file size of the CSV file or .zip is 10 MB. You can change the maximum file size.
To change the maximum file size:
- Update the client.
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > catalog > objectDefinitions.
- Open the CatalogImportPrimaryObjectDefinition.lzx file, and locate the class name catCatalogImportPrimaryObjectDefinition.
- Update the value of the maximumFileSize attribute. The default value is 10000000 bytes. You can change this value as needed, however, keep in mind the impact that larger files might have on the server.
<class name="catCatalogImportPrimaryObjectDefinition" extends="wcfPrimaryObjectDefinition" objectType="CatalogImport" creatable="true" displayName="${catalogResources.catalogImport_displayName.string}" displayNameProperty="fileName" idProperty="catalogImportId" newDisplayName="${catalogResources.catalogImport_newDisplayName.string}" copyProtected="true" isFileObject="true" fileSizePropertyName="fileSize" fileNamePropertyName="fileName" maximumFileSize="new_size" propertiesClass="catCatalogImportProperties" icon="catalogImportIcon" headerIcon="catalogImportHeaderIcon" refreshInterval="30">where new_size is the size you want (in bytes).
- Update the server.
- Open the WebSphere Commerce configuration file, and locate the command element for com.ibm.commerce.catalog.commands.CreateCatalogImportCmd name.
- Change the value of the maxuploadsize attribute to match the value specified for the client.
- Run the ANT target: UpdateEAR target to update the runtime configuration with the master configuration file.
After you complete the customization:
- Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent directory. This is the default environment setting.
- Test the changes by viewing them in the Management Center, using this URL:
https://hostname:8000/lobtools
- Deploy your changes to the production environment.