[wp-trac] [WordPress Trac] #19121: Add filter to wp_unique_filename

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 2 23:02:16 UTC 2011


#19121: Add filter to wp_unique_filename
-------------------------+-----------------------------
 Reporter:  xazure       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Upload       |    Version:  3.3
 Severity:  major        |   Keywords:
-------------------------+-----------------------------
 Add a filter to wp_unique_filename so it can be modified if necessary.

 Currently in wp_handle_upload I am trying to use FTP to put the file
 elsewhere. Since I can can't use an FTP protocol with move_uploaded_file,
 I can't just use the upload_dir filter to change the upload directory.

 I need to be able to change the unique name directly (so I can look on my
 FTP server) and then later on I'll handle the move.

 There is no way to access this (you can't just affect overrides or
 anything like that) without completely rebuilding large portions of the
 uploader. With this one minor hook added, the flexibility becomes much
 greater.

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


More information about the wp-trac mailing list