How do we increase the attachment size and allow specific file extensions to be attached in DWP? |
Login to DWP Linux server
Below is an example
#I’m allowing all kind of files extensions to be attached to the Request, Please, note that in here you can only block and not allow specific file extensions. blockedAttachmentFormats='none' # Specify maxFileSize in bytes. Below is default value that equates to ~ 5 MB #I am increasing the limit to 25MB maxFileSize=26214400 #Below values can be obtained from <DWPTOmcat>/external-conf/connect-dwp.properties #if there is only a single tenant defined for DWP, then value should be the same as-tenantName "000000000000001" \ cd $(dirname $0) . ./set_env.sh ${JAVA_EXEC} -jar "${TENANT_CONFIG_TOOL_JAR}" \ -server "https://dwp-americas.bmc.com:443/dwp" \ -api_token "hssvBpLwxWOCLBVDjjccEmThihwFePCcMRHzvPmcxVGuBWVRqASMuwkKgNCyOsjTwSLszjDCRiNDlllxmwgFCvaWvFUMXwaNdyqJVtefXkQwSynCLohdxvHONHFVWnSq" \ -api_secret "3ddc1668-8e57-45a8-ac81-db6662e0de27" \ -tenantName "000000000000001" \ -blockedAttachmentFormats "$blockedAttachmentFormats" \ -maxFileSize "$maxFileSize" \ setAttachmentSettings
sh /data1/bmc/DWP/DWP/tenant-config/scripts/linux/set_attachmentSettings.sh
NOTE: Please, make sure attachment size are the same for SRM and other involved apps. |