What Is an Attachment in WordPress

An attachment in WordPress is a media item, such as an image, PDF, audio recording or video, registered in the Media Library. WordPress keeps a database record for the item as well as information about its file. An attachment does not have to belong to a particular post or page.

Where to Find Attachments

Open Media > Library in your WordPress dashboard. In grid view, click an item to open its attachment details. Depending on the file type, you can inspect its URL, title, caption, description and image alt text. There is no standard section named “Attachments” in every post editor. See the official Media Library guide.

Attached, Unattached and Stored Files

An attachment can have a parent post or page. The Media Library may show that relationship as Uploaded to. Unattached means that no parent is assigned; it does not prove that the file is unused. The same image can appear in several posts, a template or another part of the site.

“Media Library attachments” and “uploads folder attachments” are not two separate WordPress attachment types. The library lists registered media records; the uploads folder stores files. Copying a file into that folder through SFTP alone does not create its Media Library record. WordPress normally creates that record through its media upload process. See the WordPress media upload reference.

How to Add an Attachment to a Page

In the block editor, add an Image block for a picture or a File block for a downloadable document. Choose Upload for a file on your computer, or Media Library for an existing item. Select the file, review the block and save the post or page. The Image block and File block documentation explain their controls.

In the Classic Editor, use Add Media, select or upload the item, then choose Insert into post or the corresponding page insertion button. Removing a block from one post is different from permanently deleting its media file from the library.

Download and Keep Your Media

To save a local copy of an image or export a larger library, follow the guide to downloading images from the WordPress Media Library. It explains individual downloads, uploads-folder copies and why preserving media metadata requires more than copying image files.

Use clear file names and appropriate alt text, and check where an item is used before deleting it. An unattached label is not a safe deletion checklist.