Troubleshooting: Catalog Upload file size limit
By default, the maximum file size of your load file or compressed file is 10 MB. You can change the maximum file size.
You can upload files in CSV or XML format. If you are loading a compressed file, the files within the compressed file must be in CSV or XML format. Previously, you could load only CSV formatted load files.
To change the maximum file size:
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- Update the file that contains your catalog import primary object
definitions:
- In the Enterprise Explorer view, expand .
- 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 your server.
where<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">new_size
is the size you want (in bytes).
- In the Enterprise Explorer view, expand .
- Open the CatalogImportPrimaryObjectDefinition.def file,
and locate the code
<PrimaryObjectDefinition>
. - Update the value of the
maximumFileSize
attribute. The default value is 10485760 bytes. You can change this value as needed, however, keep in mind the impact that larger files might have on your server.
where<PrimaryObjectDefinition copyProtected="true" creatable="true" definitionName="CatalogImport" displayName="${catalogResources.catalogImport_displayName}" displayNameProperty="fileName" fileNamePropertyName="fileName" fileSizePropertyName="fileSize" headerIcon="catalogImportHeaderIcon" icon="catalogImportIcon" idProperty="catalogImportId" isFileObject="true" maximumFileSize="
new_size
" newDisplayName="${catalogResources.catalogImport_newDisplayName}" newObjectMenuItemText="${catalogResources.contextMenuNewCatalogUpload}" objectType="CatalogImport" propertiesDefinitionName="catCatalogImportProperties" refreshInterval="15" helpLink="concepts/cpncsvcatupload.htm" writeUsage="IBM_ManageCatalog">new_size
is the size you want (in bytes).
- Update your server.
- Open the Updating 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 that is specified for the client. - Run the ANT target: UpdateEAR target to update the runtime configuration with the master configuration file.
- Open the Updating the WebSphere Commerce configuration file,
and locate the command element for
After you complete your 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 setting is the default environment setting.
- Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
- Deploy your changes to your production environment.