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

WordPress Trac noreply at wordpress.org
Mon Feb 27 15:38:32 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:"40130"]:
 {{{
 #!CommitTicketReference repository="" revision="40130"
 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, derosj, mikeschroder, joemcgill.
 Fixes #39875. See #31050.
 }}}

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


More information about the wp-trac mailing list