Develop > Presentation layer > Management Center framework > Customize the Management Center user interface > Customizing an existing Management Center tool > Assets tool
Changing the maximum size limit for uploaded files
You can configure the maximum size limit allowed for uploaded files.
If upload files that are larger than the default 10 MB size limit, you can customize the Management Center to accept larger files. You must update both the client and server configuration.
Procedure
- 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 > attachment > objectDefinitions.
- Open the ManagedFilePrimaryObjectDefinition.lzx file, and locate the attBaseManagedFilePrimaryObjectDefinition class.
- Update the maximumFileSize attribute of the class. The default value is 10485760 bytes, or 10 MB. You can change this value as needed, however, keep in mind the impact that larger attachments might have on the server.
- Update the server.
- Open the WebSphere Commerce configuration file, and locate the command element for the AttachmentUpload command.
- 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.
What to do next
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 the changes to the production environment.
Related concepts
IBM Management Center for WebSphere Commerce
Related tasks