The maximum size of attachment and import files that can be Attachments are being uploaded to the server in packages to allow for attachments of any size to be uploaded with a reasonable user experience.
The packaging within uploads can be configured controlled with the settings:
"MaxFileUploadPackageSize" which sets the maximum size of files that can be uploadedeach packet that a file is split into. In the example below the max size is 2 MbMB. If you upload a file that is bigger than the package size, the file is split into as many packages of the MaxFileUploadPackageSize as possible, and at last a smaller package with the remainder of the file.
"MaxFileUploadPackages" which sets the maximum number of packages the file will be sent in. In the example below the value is 4.
With the configuration below, a 1 Mb 5 MB file would be sent in two packages of 500 Kb each.2 MB each and one package of 1 MB
The maximum upload file size is calculated as MaxFileUploadPackageSize * MaxFileUploadPackages.
If you send a file exceeding the size limit, you will get this error message (in the above case, but with MaxFileUploadPackages = 1) :
If you for some reason don't want the system to break an upload file into packages, just set MaxFileUploadPackages to 1 and MaxFileUploadPackageSize to the maximem file size you want to be able to handle.We don't recommend limiting MaxFileUploadPackages and/or using a large MaxFileUploadPackageSize as it may impact user experience during heavy uploads and possibly make the system more fragile to network issues.
If you start adding these configurations, please make sure that the rest of your http pipeline and network devices can handle large single requests.
If none of the settings exists in the web.config file, "MaxFileUploadPackageSize" defaults to 2147483647 the maximum upload file size defaults to 2.147.483.647 B (2 GB) and the size of packages defaults to 100000to 100.000 B.