WordPress uploads double images?
-
Sometimes – but not all the time – when I drag and drop images into my posts, WordPress ends up uploading the image to the Media Library twice, creating two copies in the archive, one with ‘-1’ added to the end of the file name. The ‘-1’ image seems to be the one that actually ends up on the page. This means my images are taking up twice as much space and I have to carefully clean them up after each upload, making sure not to delete the image that actually appears in the post! Any idea why this is happening?
-
Hi there,
can you walk me through the steps you are taking when doing that? I am not sure I have heard of this issue before.
Are you first adding the image block (as an empty block) and then drag the image into it?
Or do you instead just drag the image into the page (without selecing a block) and drop it in that way?
Thanks for walking us through it!
-
I start with a text-only post. Then, I drag and drop the image from Windows Explorer into the post, generally aligning it with the top edge of the text block. The image appears as its own block, and I then adjust its alignment. Those are basically the steps.
-
Hm, I’m not able to reproduce this. I guess it won’t be easy since you said it only happens sometimes.
The image never gets added twice to the post/page, just to the media library, right? What browser do you use? You can copy the info from https://www.whatismybrowser.com/.
-
Yes, only to the library.
I’m using Firefox 81, and it’s been happening for a while now so that crosses multiple versions.
-
Can you give us an idea of how often this is happening, and whether there is any kind of pattern as to when it occurs?
And, are you using https://wordpress.com/media or an image block? If it’s an image block, which one?
-
Okay, I think I’ve worked it out: if you change an image’s alignment before the upload is complete, while the “loading” animation is still playing, it will upload twice. Or at least it does for me. I’ll try to work around that, but you may want to look into it. I can give more data if you need further tests.
-
That was the detail we needed, thanks. I’m able to replicate this on my own site. More importantly, I’m able to replicate it on a self-hosted WordPress site, which means this bug isn’t specific to WordPress.com, but is a problem with the WordPress software itself.
I’ve reported this to the team who works on the editor over on WordPress.org, as it will need to be fixed on that end before it will be fixed on ours.
Thanks for reporting this.
- The topic ‘WordPress uploads double images?’ is closed to new replies.