Trouble importing data / only metadata shown

Describe the problem/error/question

Hi folks,

I have a probably stupid question but I’m trying for hours now and havn’t found a solution. I want to do something very easy. Upload a .txt file and use AI to summarize the content. But I am failing at the first step: getting the data into the system. I tried both a “get files” via OneDrive Node and a File-Upload via the “Form Submission” node. In both cases the .txt file is correctly loaded. But the output does not contain the actual content of the file, only the metadata.

Screenshot 1 shows the form submission form. The output shows my file and if I click the orange “View” button I can see the text in the document. But when I try to select an input for “extracvt from file” (2nd screnshot) I can only select the metadata

Please share your workflow

Share the output returned by the last node

No output since I can’t extract the data

Information on your n8n setup

  • n8n version: 1.101.0
  • Database (default: SQLite): I think so? Didn’t change anything
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud i think
  • Operating system: Win11 Pro

Try changing data on the right to that orange text on the left

Hi @finnsky, welcome to community!
Anyway, you must match the binary field with the name of File. What I do with my node, it will be automatically get the binary field name from uploaded file, and it will be extracting it.

Here my workflow that maybe can help you!

1 Like

@cutecatcode and @jabbson, thank you so much, it finally worked! Cutecatcode I have no clue what your “{{ $json.keys()[0].replace(’ ', ‘_’) }}” does, but it works perfectly! I really need to learn more about the syntax that it used to fill out the fields

1 Like

It’s replacing the blank space (If your file has blank space, e.g. A file)
So, in visual, it will look like this
'A file'.replace(' ', '_')
And the result will be A_File, same as what needed by the binary field

1 Like

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