By default, the maximum file size of your CSV file or .zip
is 10 MB. You can change the maximum file size.
The maximum file size limit is defined in both the Open Lazlo client and Websphere Commerce instance file.
Below are the steps required to be performed to increase the promotion code upload limit :
1. Update the client
The maximum file size limit is defined in both the Open Lazlo client and Websphere Commerce instance file.
Below are the steps required to be performed to increase the promotion code upload limit :
1. Update the client
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- In the Enterprise Explorer view, expand config commerce promotion objectDefinitions
- Open the PromotionCodeImportPrimaryObjectDefinition.def file, and locate the defination name proBasePromotionCodeImportPrimaryObjectDefinition.
- 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.
<PrimaryObjectDefinition copyProtected="true" creatable="true" definitionName="proBasePromotionCodeImportPrimaryObjectDefinition" displayName="${promotionResources.promotionCodeImportObjectName}" displayNameProperty="fileName" fileNamePropertyName="fileName" fileSizePropertyName="fileSize" headerIcon="promotionCodeImportHeaderIcon" helpLink="tasks/tprimportpromo.htm" icon="promotionCodeImportIcon" idProperty="promotionCodeImportId" isBaseDefinition="true" isFileObject="true" maximumFileSize="new_size" newDisplayName="${promotionResources.promotionCodeImport_newPromotionDisplayName}" newObjectMenuItemText="${promotionResources.contextMenuNewPromotionCodeImport}" objectGroups="PromotionCodeImportGroup" propertiesDefinitionName="proPromotionCodeImportProperties" searchType="FindPromotionCodeImports" writeUsage="IBM_ManagePromotionTool">
where new_size is the size you want (in bytes).
- Update the server.
- Open the Updating the WebSphere Commerce configuration file, and locate the command element for com.ibm.commerce.promotion.commands.CreatePromotionCodeImportCmd 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 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.
Hi,
ReplyDeleteI am currently working in customization for the out of the box Madison Store WCS7 FEP4. I am trying to integrate Youtube,Pinterest,Twitter etc using IFrames or some cross domain dynamic scripts. I have added the domains as allowed domains in ‘WC-Server.xml’.
Yet I am unable to integrate the same because of some probable cross-domain restriction. Please help!!!!!