Enclosure and media attachments

Enclosures and media tags connect feed items to audio, video, and image assets.

Checked by FeedInspector

Definition

RSS enclosure and Atom link rel enclosure fields reference downloadable media files. media:content and media:thumbnail add richer media metadata.

Why it matters

Podcast clients and media readers rely on these fields to fetch assets. Missing metadata can break playback or previews.

How FeedInspector checks it

FeedInspector marks media.enclosure, media.content, and media.thumbnail and computes enclosureCount and imageCount.

Common problems and fixes

  • Problem: Enclosure URL exists but MIME type is missing.

    Fix: Include type and length attributes for enclosure entries.

  • Problem: Thumbnail tags are present without declared media namespace.

    Fix: Add xmlns:media declaration on the root node.

Minimal example

Item enclosure

<item>
  <title>Episode 12</title>
  <enclosure url="https://example.com/audio/ep12.mp3" type="audio/mpeg" length="123456" />
</item>

Related topics