SM we need to do a conversion 1KB=1024B when we specify the size limit for attachment

  • KM02956492
  • 19-Sep-2017
  • 19-Sep-2017

Summary

we need to do a conversion 1KB=1024B when we specify the size limit for attachment

Question

According to KM1037181, we knew we can set the maximum size of an attachment in three ways:

  • Specify a maximum attachment size limit for the entire system in the system information record
  • Specify a maximum attachment size limit for a particular operator in their operator record
  • Specify a maximum attachment size limit for the attachment container on a form using Forms Designer


But we found, if we specify the attachmenent size at Form Designer like follows:
・Maximum Attachment Size:5000000
・Total Attachment Size:50000000

Then at the record, we can only attach a file with max size 4883KB, and total attachment size with 48829KB.
There is a little bit difference with the size.

So what caused this difference?

Actually, when we specify the size of attachment at Form Designer, system information record and operator record,
we need to do a 1MB=1024KB calculation first.
If we want to set the attachment size to 5000KB, we need to specify 5120000 instead of 5000000.

So to the above example, we need to set the value as follows:
・Maximum Attachment Size:5120000
・Total Attachment Size:51200000

Then at the record, we can add the attachment file with 5000KB, and total attachment with 50000KB.

Answer

tested,the order should be as below if there are several setting on attachment size
1.FD
2.operator-login profiles
3.system administration-system information record-general
4.web.xml
besides,the value is calculeted to display in SM side(fd/operator/system record),but the value in web,xml is displayed directly