Skip to main content
The allowed type for a file: its declared type when allowed, otherwise the type its extension names, otherwise null. The server also checks the bytes.

Parameters

string
required
string
required

Returns

"image/png" | "image/jpeg" | "image/gif" | "image/webp" | "application/pdf" | "text/plain" | "text/csv" | "application/json" | "image/heic" | "image/heif" | null