Need help breaking changes in 2.0 read file and upload youtube node

Hi all

i had a working flow: read file from my local downloads folder, upload to youtube node, pretty straight-forward. I have a local docker set up, and before between these two nodes, I have a code node basically doing `item.binary.data.mimeType = ‘video/mp4’;`, and that was working.
However, youtube node always has this bad request, I don’t know if it’s the new binary data set up breaking it or something else is breaking it. Also it is not recommended anymore to directly modify binary data.

my docker-compose.yml is here

```

services:
n8n:
build:
context: .
dockerfile: Dockerfile
container_name: n8n
restart: always
ports:

  • “5678:5678”
    environment:
  • N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
  • N8N_HOST=localhost
  • N8N_DEFAULT_BINARY_DATA_MODE=filesystem
  • N8N_PORT=5678
  • N8N_PROTOCOL=http
  • N8N_RUNNERS_ENABLED=true
  • NODE_ENV=production
  • GENERIC_TIMEZONE=America/Los_Angeles
  • TZ=America/Los_Angeles
  • NODES_EXCLUDE=
  • N8N_RESTRICT_FILE_ACCESS_TO=/downloads
    volumes:
  • n8n_data:/home/node/.n8n
  • /Users/tomyang/Downloads:/downloads

volumes:
n8n_data:

```

i tried ffmpeg transform the video to clean mp4 as well, doesn’t work

same problem bad request because of the media type and i changed it to video/mp4 but it still reading it as application/mp4

My workaround - change ffmpeg output filetype from .mp4 to .mv4

Long answer:

If you’re using FFmpeg → Read/Write Files from Disk → YouTube Upload and get: “Media type ‘application/mp4’ is not supported” this is not a MIME setting issue.

The YouTube node ignores $binary.mimeType and infers the type from the filename.
In some environments, .mp4 maps to application/mp4, which YouTube rejects.

Workaround Fix

Change the FFmpeg output filename from .mp4 to .m4v.

.m4v is still an MP4 container, but YouTube infers a valid video/* type.

Example: “ffmpeg … -f mp4 /data/video.m4v”

Then update Read/Write Files from Disk to read video.m4v. Do not change video/mp4 in the Read/Write node

Result

YouTube upload succeeds immediately :slight_smile: