[wp-trac] [WordPress Trac] #6294: Uploading media file with same sanitized filename as existing file will overwrite existing file.

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 19 05:02:04 GMT 2008


#6294: Uploading media file with same sanitized filename as existing file will
overwrite existing file.
-----------------------------+----------------------------------------------
 Reporter:  markjaquith      |       Owner:  anonymous
     Type:  defect           |      Status:  new      
 Priority:  highest omg bbq  |   Milestone:  2.5      
Component:  Administration   |     Version:  2.5      
 Severity:  blocker          |    Keywords:           
-----------------------------+----------------------------------------------
 1. Upload "test.png" with dimensions X1xY1
  1. Upload a different file that is also named "test.png" with dimensions
 X2xY2

 The second test.png will overwrite the first, although the first will keep
 its dimensions of X1xY1, so it will be squished or stretched out.

 Blocker, because someone your original file is GONE without any warning.

 Desired outcome: test-N.jpg where N is an integer that increments as high
 as it needs to go to avoid overwriting an existing file.

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


More information about the wp-trac mailing list