Skip to content

Commit 3727ec9

Browse files
committed
fix(docs): say the Vanta mimeType is ignored for File-input uploads
Every return path of downloadServableFileFromStorage yields a non-empty contentType (a literal, getMimeTypeFromExtension's GENERIC_MIME_TYPE fallback, or resolveServableDocBytes' constants/getContentType), so resolved.contentType always wins at route.ts:79-81 and params.mimeType is unreachable on that branch. It is not a fallback; it is ignored.
1 parent 1db2430 commit 3727ec9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/docs/content/docs/en/integrations/vanta.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ Upload an evidence file to a Vanta document. Requires credentials with the vanta
331331
| `documentId` | string | Yes | Unique ID of the document to attach the file to |
332332
| `file` | file | No | The evidence file to upload |
333333
| `fileName` | string | No | Optional file name override |
334-
| `mimeType` | string | No | MIME type of the file \(e.g., application/pdf\). Applied when uploading base64 content; for a file from the File input it is only a fallback, since the content type is normally resolved from storage. |
334+
| `mimeType` | string | No | MIME type of the file \(e.g., application/pdf\). Used only for base64 uploads; ignored for a file from the File input, whose content type is always resolved from storage. |
335335
| `description` | string | No | Description of the uploaded evidence \(e.g., "Q3 access review evidence"\) |
336336
| `effectiveAtDate` | string | No | ISO 8601 date indicating when the document is effective from |
337337

apps/sim/tools/generated/tool-metadata.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

apps/sim/tools/vanta/upload_document_file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const vantaUploadDocumentFileTool: ToolConfig<
6464
required: false,
6565
visibility: 'user-or-llm',
6666
description:
67-
'MIME type of the file (e.g., application/pdf). Applied when uploading base64 content; for a file from the File input it is only a fallback, since the content type is normally resolved from storage.',
67+
'MIME type of the file (e.g., application/pdf). Used only for base64 uploads; ignored for a file from the File input, whose content type is always resolved from storage.',
6868
},
6969
description: {
7070
type: 'string',

0 commit comments

Comments
 (0)