Incorrect MIME Type when reading file using “Read/Write Files from Disk” node

Hello,

After updating n8n version (1.122.4), the Read/Write Files from Disk node returns a different MIME type than in the previous versions.

In the previous version, an MP4 file written using the same node would later be read with the MIME type: video/mp4

After upgrading, reading the exact same MP4 file now returns: application/mp4

To Reproduce

  1. Create a workflow that writes a .mp4 file using the Read/Write Files from Disk node.
  2. Read the same .mp4 file using the same node.
  3. Inspect the binary metadata returned.

Workflow to Reproduce:

Expected behavior

The node should preserve or correctly detect the MIME type and continue to return: video/mp4 instead of: application/mp4

Github Issue

https://github.com/n8n-io/n8n/issues/22007

This is still exists with n8n v 1.122.4

1 Like

I marked it as completed, so its routed to the internal team and they are investigating this issue. The team will follow up with the thread when they have an update.

1 Like