getMaxAttachmentSize static method
The maximum size, in bytes, allowed per attachment (file.size.max,
default 100 MB), from the cached app settings — falling back to the
documented client default when the key is absent. Size is validated per
file only; there is no per-message aggregate cap.
Implementation
static int getMaxAttachmentSize() {
final settings = SdkRegistry.getInstance().settings.getCachedSettings();
return settings?.maxFileSize ?? UploadLimits.defaultMaxFileSize;
}