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

This is still exists with n8n v 1.122.4

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.

It has been over a month with no update so far,

Could someone from the team please confirm whether this behavior is now intended or if it is a bug?!

This issue is affecting many users, as reported in github,

I can see the status is team-assigned, but there has been no update or response from the team..

Finally after about 2 months, someone fixed it :smiley:

thanks @Mookie_Lian for following at github :wink: