[wp-trac] [WordPress Trac] #48458: Regression: Auto-rotated or scaled image upload can overwrite previously uploaded image

WordPress Trac noreply at wordpress.org
Tue Oct 29 17:10:12 UTC 2019


#48458: Regression: Auto-rotated or scaled image upload can overwrite previously
uploaded image
-------------------------------+---------------------
 Reporter:  ianmjones          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  5.3
Component:  Media              |     Version:
 Severity:  major              |  Resolution:
 Keywords:  close 2nd-opinion  |     Focuses:
-------------------------------+---------------------

Comment (by azaozz):

 Yes, it is a long-standing problem that ideally should be fixed for all
 cases in #42437. One of the early patches for "big image" was using
 `wp_unique_filename()` for `-scaled` and `-rotated` but it was removed
 later in favour of fixing this for all image file names.

 We can bring use of `wp_unique_filename()` back for `-scaled` and
 `-rotated`, however this will further complicate things for #48453.
 Ideally all of these cases will be fixed in #42437 during
 `wp_unique_filename()` that runs on the initial saving of the uploaded
 file, something like
 https://core.trac.wordpress.org/attachment/ticket/42437/42437.diff.

 As this is closely related to #48453 lets keep it open for now and look at
 solution for both cases at the same time.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48458#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list