Title: Replace link changing file name
Last modified: October 2, 2024

---

# Replace link changing file name

 *  Resolved [digitalcharlie](https://wordpress.org/support/users/digitalcharlie/)
 * (@digitalcharlie)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/replace-link-changing-file-name/)
 * I’ve been having issues with files of a certain size and larger (3mb for example),
   where if I replace a file with another of the same name and select “replace and
   use the new file name” it will wind up appending -1 to the file. I haven’t had
   this issue with smaller files (133kb or so).
 * I know the ideal use case for this is to select “just use the same name,” but
   this has been an issue for people I work with who don’t know to select the other
   option.
 * So, it feels like this is a bug or unintended behavior, where uploading a file
   with the same name winds up creating a new file name rather than keeping it the
   same.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/replace-link-changing-file-name/#post-18050950)
 * Hey digitalcharlie,
 * The ‘-1’, ‘-2’ and so on are not added by our plugin, but by WordPress. I’m afraid
   this is something we cannot control; WordPress adds them to files if it sees 
   that another one exists on the same path with the same filename. I’m also not
   sure why that happens only to some of the images, so I would recommend you going
   to the Fixing WordPress forum: [https://wordpress.org/support/forum/how-to-and-troubleshooting/](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Replace link changing file name’ is closed to new replies.

 * ![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)
 * [Enable Media Replace](https://wordpress.org/plugins/enable-media-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-media-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-media-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-media-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-media-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/replace-link-changing-file-name/#post-18050950)
 * Status: resolved