Support » Fixing WordPress » how do I replace images without FTP?

  • Resolved geo316


    I’m building a WP site for a client and just noticed that uploading images into the Media Library or into a NextGen Gallery is easy, but I cant replace the image keeping the same file name and id.

    If I re-upload the same file using either Media Library or NG the file is renamed and uploaded as a unique image. Of course this would be generally desirable, but again I want the ability to replace images without having my client FTP.

    Any suggestions? Modifications? Any known plug ins that will let me do this?


Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Delete the original image and then upload the modified version, perhaps? That will let the filename work okay.

    But you cannot keep the same attachment ID. Ever. Period. ID’s only increase, they do not get replaced.

    but understand that the media library stores the image file in a folder hierarchy by date. If I delete an image and then upload one with the same name a month later its not guaranteed that it will have the same path…

    I’ll have to look into the NG gallery’s way of storing files…

    Thanks for the reply

    …to clarify: if I upload an image and then a month later delete it and upload a new file with the same name the path will likely be different…

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Well… you could turn off the month/year thing on the Settings->Miscellaneous screen.

    …that actually works for me – 🙂

    This may help someone else – I’m uploading an image via media library and using it as a static image in the site. I get the URL to the file once it’s uploaded and hard code it into the site HTML.

    Using the media library I can now change that image by deleting it and then uploading a replacement file with the same name. The task stays within WordPress – no FTP’ing!

    a quick gripe if I may – why can’t there be an upload link right on the Media Library page? You can view and delete an image there but you have to go all the way over to create -> post and use the add media buttons above the tiny mce bar to upload…

    Anyway – thanks Otto42 for helping me to think through this…

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    why can’t there be an upload link right on the Media Library page?

    WordPress ties all attachments to specific posts. So when you upload something, it creates an entry for it pointing to its parent post. This allows things like the gallery feature to work.


    I gotta agree – my first encounter with the media library caused a severe headscratching for me – I looked for that “Upload New File” button in the edit area. I think this is a must have in the wishlist.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how do I replace images without FTP?’ is closed to new replies.