Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#35924 closed defect (bug) (worksforme)

"jpeg" image upload overwrites "jpg" images with the same (other than extension) filename

Reported by: koryp's profile koryp Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3.1
Component: Media Keywords: reporter-feedback
Focuses: Cc:

Description (last modified by SergeyBiryukov)

If an image is uploaded as "image1.jpg" and then another image is uploaded as "image1.jpeg", the thumbnails of the original images are overwritten because the thumbnail extensions are forced to "jpg" instead of sticking with "jpeg".

Haven't tested, but might also be an issue with "jpe" ... possibly also with "tiff" vs "tif"

... probably too old to be relevant, but my searching found this really old ticket: #16458

Just tested and replicated the issue in 4.4.2, but originally noticed it in 4.3.1 ... didn't test earlier versions.

Change History (7)

#1 @SergeyBiryukov
8 years ago

  • Description modified (diff)

#2 @markoheijnen
8 years ago

First of all thank you for this bug report. That ticket does help since I guess we broke it again in 3.5 when we did a full rewrite of the logic. And probably with we, I mean I. I can remember that it was something that was discussed but I have to look into it first since it has been a while.

#3 @markoheijnen
8 years ago

I haven't yet been able to reproduce it yet. For me it does seem to work good. Do you use any related plugins that could cause issues?

This ticket was mentioned in Slack in #core-images by markoheijnen. View the logs.


8 years ago

#5 @azaozz
8 years ago

  • Keywords reporter-feedback added

Did a quick test and can't see any file extensions changed/overwritten. .jpeg remains .jpeg no matter what (as it should be). Perhaps this is caused by a plugin or your theme? Can you re-test with plugins disabled and one of the default themes.

#6 @jaspermdegroot
8 years ago

Also tested this, but can't reproduce the problem either.

#7 @swissspidy
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.