• I can upload an updated file onto my site but the URL is referencing last month’s file. How can I upload the file into last month’s directory? Or fix the link?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There’s no way in the WP admin area to replace existing media files in situ. You could replace existing files with the exact same name via FTP. But in the case of image files, you’d need to also replace all the various generated sizes with updated versions of the same size.

    The alternative is to upload the new version as a new media file and then alter any posts using the file to use the new version instead. The media library reference to the post a media file is attached to is unreliable for knowing which posts the file is used in. Instead, search the posts DB table through the phpMyadmin app to find posts having that file name in post_content. You can instead use the WP posts list table search box, but you need to search separately for every post type. You can see all post types found at once with phpMyAdmin.

Viewing 1 replies (of 1 total)
  • The topic ‘Link is referencing last month’s upload folder’ is closed to new replies.