• Check whether a file's reported MIME type is permitted for upload. This does not validate the file contents—only the claimed type.

    Parameters

    • file: UploadedFile

      Uploaded file metadata (original name, mimetype, etc.)

    Returns { fileTypeError: Error; isPermitted: boolean }

    Object indicating any validation error and whether the file is permitted