{"record":{"id":"057ac9f0397ec0b9","repo":"n8n-io/n8n","slug":"unsupported-mime-type-mimetype-for-selected-lo","errorCode":null,"errorMessage":"Unsupported mime type: ${mimeType} for selected loader: ${selectedLoader}","messagePattern":"Unsupported mime type: (.+?) for selected loader: (.+?)","errorType":"validation","errorClass":"NodeOperationError","httpStatus":null,"severity":"error","filePath":"packages/@n8n/ai-utilities/src/utils/n8n-binary-loader.ts","lineNumber":79,"sourceCode":"\t\t\t\tSUPPORTED_MIME_TYPES[loader as keyof typeof SUPPORTED_MIME_TYPES].includes(mimeType),\n\t\t\t);\n\n\t\t\tthrow new NodeOperationError(\n\t\t\t\tthis.context.getNode(),\n\t\t\t\t`Mime type doesn't match selected loader. Please select under \"Loader Type\": ${neededLoader}`,\n\t\t\t);\n\t\t}\n\n\t\tif (!Object.values(SUPPORTED_MIME_TYPES).flat().includes(mimeType)) {\n\t\t\tthrow new NodeOperationError(this.context.getNode(), `Unsupported mime type: ${mimeType}`);\n\t\t}\n\n\t\tif (\n\t\t\t!SUPPORTED_MIME_TYPES[selectedLoader].includes(mimeType) &&\n\t\t\tselectedLoader !== 'textLoader' &&\n\t\t\tselectedLoader !== 'auto'\n\t\t) {\n\t\t\tthrow new NodeOperationError(\n\t\t\t\tthis.context.getNode(),\n\t\t\t\t`Unsupported mime type: ${mimeType} for selected loader: ${selectedLoader}`,\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate async getFilePathOrBlob(\n\t\tbinaryData: IBinaryData,\n\t\tmimeType: string,\n\t): Promise<string | Blob> {\n\t\tif (binaryData.id) {\n\t\t\tconst binaryBuffer = await this.context.helpers.binaryToBuffer(\n\t\t\t\tawait this.context.helpers.getBinaryStream(binaryData.id),\n\t\t\t);\n\t\t\treturn new Blob([binaryBuffer as BlobPart], {\n\t\t\t\ttype: mimeType,\n\t\t\t});\n\t\t} else {","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/ai-utilities/src/utils/n8n-binary-loader.ts#L61-L97","documentation":"Validation error from the Default Data Loader's validateMimeType, raised as NodeOperationError. It fires when the mime type is globally supported but not supported by the selected loader, and the selection was not 'auto' or 'textLoader' (which accepts text-convertible data). Narrower than the loader-mismatch case: the type is loadable, just not by this loader without conversion.","triggerScenarios":"Thrown at packages/@n8n/ai-utilities/src/utils/n8n-binary-loader.ts:79 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set Loader Type to 'auto' so the loader is chosen from the file's mime type.","Convert the binary file into a format the node supports.","Check the upstream node (e.g. HTTP Request) and make sure it delivers a supported content type."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","contentChangedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}