Devenia / WordPress plugin

Devenia Replace Media lets WordPress editors correct an existing media attachment in place

Replace a WordPress media attachment when its established URL already serves existing placements and the address matters more than rebuilding every placement.

Art Deco press replacing a file inside the same WordPress media attachment

The existing attachment

What stays the same when you replace a file

Use this when an image or document needs updating everywhere it is already used. For example, replace an outdated product photograph or correct a PDF without changing the links on your pages.

Three web pages stay connected to one attachment while its photograph is replaced.

Attachment identity

The attachment ID and file URL stay the same. Existing links continue to reach the file.

Media metadata

The title, caption, alt text, and description are kept. Review them if the replacement changes what the image shows.

Content relationships

Posts, pages, and templates keep their connection to the same attachment.

Image sizes

WordPress regenerates image sizes for the replacement.

Replace File in the editor

Replace a file in four steps

Start with the existing item in the Media Library. Uploading a separate new item will not update the pages that use the old attachment.

Find the media item

Open the existing item in the Media Library. You can also reach it through the WordPress media selector or Elementor’s attachment details.

Select Replace File

Choose Replace File for that item. Check the selected attachment before continuing.

Choose the source file

Select the corrected file on your computer and submit the replacement form.

Check the result

Open a page that uses the file and follow its image or download link. If you still see the old version, refresh the page and check your browser or CDN cache.

For automation clients

Replace a file through an AI client

An AI client can update an existing attachment from a web address or file data. Give it the attachment ID and the replacement source so it changes the correct item.

Replace from a URL

Use media/replace-from-url when the new file is available at an HTTP or HTTPS address. WordPress validates the source URL before retrieving it.

Replace from base64 data

Use media/replace-base64 when the client supplies the file data directly. The decoded file must be no larger than 20 MB.

Safeguards around the replacement

How replacement is checked

The same replacement checks apply whether you use the editor or an AI client.

Permission

The account must be allowed to upload files and edit the selected attachment.

Remote source

A remote replacement accepts only HTTP or HTTPS sources that pass WordPress URL validation.

Staging

The new file is prepared before the current file is moved to a temporary backup.

Rollback

If the new file cannot be moved into place, the plugin attempts to restore the previous file.

Runtime and integrations

What you need

WordPress and PHP are required. The AI connections and Elementor integration are optional.

5.7 or later

WordPress 5.7

The plugin’s minimum WordPress version. Replace files from the Media Library after activating the plugin.

7.4 or later

PHP 7.4

The plugin’s minimum PHP version.

Automation clients

WordPress Abilities API

Required to make the replacement operations available to automation clients.

Optional

Elementor

Provides another way to open Replace File from attachment details.

The practical next step

Update the file and keep its links

Install and activate Devenia Replace Media, then open the item you want to update in the Media Library.