When you upload media files, you have the option of linking them to a post page rather than the file URL. Attachment pages are shown when files are linked to post pages.
You can create different attachment pages for different media types. The name of the MIME type will be the name of your file; you could have image.php, video.php, audio.php, and application.php as well as a generic attachment.php file.
If no attachment page file exists, single.php will be used, and as a last resort, index.php.
Was this article helpful?