Introduced in Feature Pack 1

Changing the maximum size limit for a compressed file

When you create multiple managed files from a compressed file, you can change the size limit of the compressed file.

About this task

To upload compressed files that are larger than the 10 MB size limit, you can customize the Management Center to accept larger compressed file. You must update both the client and server configuration.
Note: A large size limit might affect the performance of the server.

Procedure

  1. Update the client.
    1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
    2. Complete one of the following steps:
      • WebSphere Commerce Version 7.0.0.0Feature Pack 1In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > attachment > objectDefinitions.
      • Introduced in Feature Pack 2In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > attachment > objectDefinitions.
    3. Open one of the following files:
      Option Description
      ManagedDirectoryPrimaryObjectDefinition.lzx
      1. Locate the isFileUploadService custom service for uploading zip files.
      2. 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 your server.
        <wcfCustomService url="/cmc/AttachmentFileUpload" isFileUploadService="true" refreshChildren="true" maximumFileSize="10485760"
      ManagedDirectoryPrimaryObjectDefinition.def
      1. Locate the isFileUploadService custom service for uploading zip files.
      2. Update the maximumFileSize attribute. 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 your server.
        <CustomService
        	displayName=
        	"${attachmentResources.customService_createFilesFromCompressFileDisplayName}"
        	isFileUploadService="true"
        	maximumFileSize="10485760"
        	menuDisplayName=
        	"${attachmentResources.customService_createFilesFromCompressFileMenuDisplayName}"
        	refreshChildren="true"
        	toolbarIcon="createFilesFromCompressFileToolbarIcon"
        	url="/cmc/AttachmentFileUpload">
  2. Update the server.
    1. Open the Updating the WebSphere Commerce configuration file, and locate the command element for the AttachmentUpload command.
      <Command maxuploadsize="10000000"
      name="AttachmentUpload"
      supportedFileExtension="doc,xls,ppt,ra,rpm,gz,pdf,ps,swf,
      zip,gtar,tar,wav,gif,jpe,jpg,jpeg,text,txt,mpg,mpeg,mov,avi,qt,jar,png"
      uploadReturnURL_enabled="true" viruscheck="no"/>
    2. Change the value of the maxuploadsize attribute to match the value specified for the client.
    3. Run the ANT target: UpdateEAR target to update the runtime configuration with the master configuration file.

What to do next

After you complete your customization:
Version Steps
  1. 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.
  2. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  3. Deploy your changes to your production environment.
Introduced in Feature Pack 2
  1. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  2. Deploy your changes to your production environment.