[wp-trac] [WordPress Trac] #21679: media_handle_upload does not provide a way to change the file's name

WordPress Trac noreply at wordpress.org
Mon May 26 15:15:23 UTC 2014


#21679: media_handle_upload does not provide a way to change the file's name
-------------------------------------------------+-------------------------
 Reporter:  Willshouse                           |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Media                                |  Review
 Severity:  normal                               |     Version:  2.5
 Keywords:  needs-testing dev-feedback needs-    |  Resolution:
  patch                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by ericlewis):

 Replying to [comment:3 SergeyBiryukov]:
 > Currently, if you upload "Picture.jpg" several times, the attachments
 will have "Picture" title.
 >
 > With the patch, the titles would be "Picture", "Picture1", "Picture2",
 etc.

 I don't think that's a bad side effect, maybe better than naming them all
 the same.

 21679.patch looks good to me.

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


More information about the wp-trac mailing list