[wp-trac] [WordPress Trac] #21452: When uploading media wp_unique_filename() treats capitalisation as being different.

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 2 13:24:12 UTC 2012


#21452: When uploading media wp_unique_filename() treats capitalisation as being
different.
--------------------------+-----------------------------
 Reporter:  husobj        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Filesystem    |    Version:  3.4.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21452>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list