[wp-trac] [WordPress Trac] #31050: Better PDF Upload Management

WordPress Trac noreply at wordpress.org
Mon Feb 27 19:24:51 UTC 2017


#31050: Better PDF Upload Management
--------------------------------------------+---------------------------
 Reporter:  celloexpressions                |       Owner:  mikeschroder
     Type:  feature request                 |      Status:  closed
 Priority:  normal                          |   Milestone:  4.7
Component:  Media                           |     Version:
 Severity:  normal                          |  Resolution:  fixed
 Keywords:  has-patch needs-testing commit  |     Focuses:  ui
--------------------------------------------+---------------------------

Comment (by joemcgill):

 In [changeset:"40133"]:
 {{{
 #!CommitTicketReference repository="" revision="40133"
 Media: Keep PDF previews from overwriting files.

 Since support for PDF previews were added in [38949], it's possible
 that the generated image file could overwrite an existing image file
 with the same name. This uses wp_unique_filename() to avoid this
 issue and adds a '-pdf' identifier on the end of filenames.

 Props gitlost, desrosj, mikeschroder, joemcgill.
 Merges [40130] and [40131] to the 4.7 branch.
 Fixes #39875. See #31050.
 }}}

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


More information about the wp-trac mailing list