Replace the file. Keep the attachment.
A price list changes. A product image needs a correction. A client sends a new logo.
You could upload another copy. But then WordPress gets another media item, your team has another version to find, and the old file may still be linked somewhere.
Replace Media updates the file behind the WordPress media item you already use.
That matters when the image or document is connected to products, posts, galleries — or has already escaped WordPress entirely, into an email, QR code, partner link, or search result.
When the link is already out there
Imagine a PDF price list.
You sent the link to customers. It is in an email template, on a partner site and behind a printed QR code. Now the prices change.
Uploading price-list-2026-final.pdf as a new Media Library item does not update any of those old links.
Replacing the original file can be the cleaner option.
If its file type and URL remain unchanged, those direct links can continue to lead to the new version.
That if matters. WordPress media references are not all stored the same way, and changing the file type changes the URL. We cover those cases below.
One file changed. Why create another copy?
This pattern will look familiar: summer-campaign.png, summer-campaign-2.png, summer-campaign-final.png, summer-campaign-final-v2.png.
Sometimes people upload another copy because it feels safer. Sometimes they simply cannot find the original.
Plathix folders and search help with the second problem. Once you find the right file, Replace Media lets you update it rather than add another version.
Where this is useful
What happens when you replace a file
The WordPress media ID stays in place, along with its Plathix folder and media fields such as title, alt text, caption and description.
The physical file changes.
For images, WordPress may also regenerate image sizes and update dimensions and metadata. After a successful replacement, Plathix removes the old physical file and its generated thumbnails.
There is one filename detail worth knowing.
Plathix keeps the old base name, not the name of the file you upload. For example: logo-final.png replacing logo.png stays logo.png.
Where you can start a replacement
Replace Media is available from:
Choose the new file and replacement starts.
There is currently no preview comparison and no extra confirmation screen, so check the file before selecting it.
The ID may stay. The URL may not.
This distinction is the important one.
A WordPress media ID and a file URL are not the same thing.
Some parts of WordPress and plugins refer to the media item by ID. Others store the actual /uploads/.../file.jpg URL in their content.
That is why replacing a file can leave one placement untouched and require a check in another.
Same file type. In our live tests, when the replacement kept the same type, extension and upload location, the URL stayed unchanged.
Same URLDifferent file type. Change PNG to JPG and the extension changes. The old .png address no longer points to the new file after cleanup.
Old URL → 404Hard-coded URLs. Plathix does not crawl your site and rewrite file URLs stored inside page content, theme settings or third-party plugin data. So if something literally contains <img src="…/summer-campaign.png">, Plathix does not edit that HTML.
Not rewrittenDirect file URL: check it after replacement.
What about cache?
Replacing the file does not mean every browser, CDN or external service immediately forgets the previous copy.
Plathix adds a version parameter to WordPress-generated media URLs so browsers can request the updated file.
In our 11 Oct live test, the published Gutenberg page showed the new image to a returning visitor.
If your site uses a CDN, that cache may need to be cleared separately. Plathix cannot purge copies held by email clients, social networks, search engines or other external services.
Tested
The core Free workflow passed:
| Test | Result |
|---|---|
| Replace a Media Library file | Passed |
| Keep WordPress media ID | Passed |
| Keep Plathix folder | Passed |
| Keep title, alt, caption and description | Passed |
| Keep attached-post relationship | Passed |
| Update an ID-based placement | Passed |
| PNG → JPG | Passed— extension changed; old file removed |
The Lab article contains the test environment, results and known limits.
Before you replace
There is no Undo
After a successful replacement, the old file is removed. Plathix does not currently keep version history or offer one-click rollback. If the original matters, keep your own backup.
It works one file at a time
The Media Library interface is for deliberate individual replacements, not hundreds of matched files at once. PRO adds WP-CLI for automated workflows, but there is no visual bulk-matching interface today.
There is no preview screen
Choosing the file starts the replacement. There is no side-by-side old/new comparison beforehand.
SVG follows the normal SVG rules
SVG replacements go through the same Plathix SVG checks as ordinary SVG uploads, including sanitization and access controls.
Replace Media FAQ
Is Replace Media included in Free?
Will my file URL stay the same?
Does Plathix rewrite URLs inside my pages?
Can I undo it?
Can I replace hundreds of product images at once?
Why do I still see the old image?
Related
Update the file you already use
A corrected image does not always need a new media item. Neither does next month’s price list. Find the file, replace it, then check the places where its URL matters.








