The read file node acts in a strange way. Can't resolve it

Describe the problem/error/question

In using the read file node the node returns a valid file but I cannot download it using the button + the next nodes get a 9 byte empty file instead of the actual file.
Now I checked via FTP and I know for a fact that the file is indeed in place in the correct folder and have manually downloaded it to make sure that it is indeed a good video file with no issues.
Just to be clear it worked just fine a few hours ago I didn’t change any config files/compose data nothing. The node just stopped working.

What is the error message (if any)?

This is how the file is read

When trying to click download chrome says:

Please share your workflow

Doesn't seem to be relevant here I am just trying to read a file that is on the disk.

Share the output returned by the last node

When trying to upload the file:

Information on your n8n setup

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

Hi @Alex_Satya,

I have the same issue and reported it about a month ago but still haven’t got a reply from the team,
However it seems to be a bug since the issue has been assigned to a team..

There are some workarounds mentioned on GitHub..

In short for now, you need to manually set the MIME type from application/mp4 to video/mp4

Hope this helps..

On the one hand good to hear that it is assigned. On the other hand the solution did not work for me :frowning: the file still doesn’t open.

Thank you for updating

For the time being as strange as it sounds I ended up using execute node with curl to upload a file…