Opened 10 months ago
#21452 new defect (bug)
When uploading media wp_unique_filename() treats capitalisation as being different.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Filesystem | Version: | 3.4.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
On most web servers "Photo.jpg" and "photo.jpg" can be treated as different files.
The problem is when backing up a local copy (to my Mac) it will not let both these files exist at the same time - it wants to replace one with the other as it treats lowercase and uppercase as the same.
I suggest that we should do the same with uploads so that if "Photo.jpg" exisits and you upload "photo.jpg" is is renamed to a unique name.
I guess this would require a fix in the wp_unique_filename() function.
Note: See
TracTickets for help on using
tickets.
