(providerId: ProviderId | string)
| 173 | * base64 hydration cap (which stays at {@link INLINE_ATTACHMENT_THRESHOLD_BYTES}). |
| 174 | */ |
| 175 | export function getProviderAttachmentMaxBytes(providerId: ProviderId | string): number { |
| 176 | return getProviderFileAttachment(providerId).maxBytes |
| 177 | } |
| 178 | |
| 179 | export function inferAttachmentMimeType(file: UserFile): string { |
| 180 | const explicitType = file.type?.trim().toLowerCase() |
no test coverage detected