• When I try to upload a new file into the media library with the same name as a file that was permanently deleted, the permalink is for the deleted file. Does the file that was permanently deleted still exist somewhere in the WP database / library? In this case, I corrected an old file with a defect and tried reuploading it with the same name, but the permalink still linked to the old file. Any solution to get around this? Thanks.

Viewing 1 replies (of 1 total)
  • If you upload a file to the media library, followed by uploading the exact same file again, you would end up with “filename.jpg” and “filename-1.jpg” (for example).

    If you delete the first file you uploaded (filename.jpg), and upload the same file again immediately after, it will have the exact same URL as the file you just deleted (filename.jpg) – it should be simply taking its place at that URL.

    The Custom Upload Dir plugin could be helpful to you if you wish to have better control over where your media uploads are stored.

    If you are seeing the old file instead of a new file when visiting the URL, then you should be clearing your browsers cache to see the new file.

    Hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘Uploading new content with same permalink as deleted content’ is closed to new replies.