Possible to convert different file types to text in 1 workflow?

When working with downloaded binary files, how can i detect the file type and then send it to the correct extract node so that all files uploaded to google drive can be automatically embedded into Vector database?

Binary files don’t allow you to pull any schema through for file type.

When output is text it works fine, but what if i want to upload an excel sheet or a jpeg?

  • n8n version: 1.58
  • Database (default: Postgres):
  • **Running n8n via (Docker, self hosted
  • Operating system:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @jakeThai,

What about using the $binary metadata in a switch node to route it based on the mime type?

1 Like

Thank you yes I have tried this, I think I’m having problems where there are 2 webhooks going into the workflow. How is this properly managed, as in can you map both webhooks data in the workflow?

This is what I’m trying to do but getting stuck with the output of extract file nodes. How do I get the Json output into the database? Is what I’m trying to do possible?

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.