Opened 8 years ago
Last modified 7 years ago
#40289 reopened defect (bug)
Uploading 2 files with the same name but different casing, overwrites existing files
Reported by: | quickim | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.7.3 |
Component: | Media | Keywords: | has-screenshots |
Focuses: | administration | Cc: |
Description
Problem: Under normal circumstances, if I upload a file to the media library but a file with a similar name was previously uploaded, wordpress would change the name of the new file (by adding a dash and a number).
However, If I upload 2 files with the same name, BUT WITH DIFFERENT CAPITALIZATION, wordpress won't rename the second file and will just reference the older one.
So if for example, I already had the file cover.jpg in my library and I've created a new post and uploaded the file COVER.JPG, it will show in the post the older image of (cover.jpg).
Attachments (1)
Change History (9)
#2
@
8 years ago
- Resolution set to worksforme
- Status changed from new to closed
Could not reproduce the error, Working fine for me too.
#3
@
8 years ago
- Resolution worksforme deleted
- Status changed from closed to reopened
Tried again, this time even simplified the process and same thing has happened:
Steps:
- Create two different images locally (in different folders cos I'm using windowz): testy.jpg and TESTY.jpg
- Uploaded both directly to the media library
- Opened the library and I could see both files in the library with the correct thumbnails.
- BUT - when I open them (by clicking their name), they both show the same image.
Here are the screenshots of the result in WP:
https://www.dropbox.com/s/70wfj96po0mr5gm/screenshot1.jpg?dl=0
https://www.dropbox.com/s/e4zywr31rpuor9b/screenshot2.jpg?dl=0
And here are the direct links to the images I uploaded to my server:
http://www.quickim.co.il/wp-content/uploads/2/2017/03/TESTY.jpg
http://www.quickim.co.il/wp-content/uploads/2/2017/03/testy.jpg
And lastly, here are the same images, but this time as thumbnails -
Try opening both in different tabs and then refresh each of them once and notice the image actually changes:
http://www.quickim.co.il/wp-content/uploads/2/2017/03/TESTY-150x150.jpg
http://www.quickim.co.il/wp-content/uploads/2/2017/03/testy-150x150.jpg
Thanx again
#4
@
8 years ago
Repeated your steps but still could not reproduce the issue. As I said it looks like some sort of caching or something else is going wrong with your hosting provider. It is a good choice to contact them.
Also this is a good time to cross check by trying to reproduce the issue at your local development server. If this works OK then definitely you need to find out what is going wrong with your hosting server.
#6
follow-up:
↓ 7
@
8 years ago
@thamaraiselvam No I tested it in Ubuntu. But I believe the hosting provider for http://quickim.co.li is a Linux server. as I don't think the site is hosted on a Windows server (ideally!)
#7
in reply to:
↑ 6
@
8 years ago
Replying to subrataemfluence:
@thamaraiselvam No I tested it in Ubuntu. But I believe the hosting provider for http://quickim.co.li is a Linux server. as I don't think the site is hosted on a Windows server (ideally!)
Agreed :+1:
I tried to reproduce your issue at my local but everything seems to work OK.
Here is what I did:
Let me know if I need to do something else in order to reproduce the exact issue. Otherwise I suspect some sort of caching issue is working in the background for you.
Environment information:
OS: Ubuntu 14.04
WP version: 4.7.3
Browser: Chrome (Version 57.0.2987.110 (64-bit))