MCPcopy Index your code
hub / github.com/simstudioai/sim / getProviderAttachmentMaxBytes

Function getProviderAttachmentMaxBytes

apps/sim/providers/attachments.ts:175–177  ·  view source on GitHub ↗
(providerId: ProviderId | string)

Source from the content-addressed store, hash-verified

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

Callers 5

FileUploadFunction · 0.90

Calls 1

Tested by

no test coverage detected