[wp-trac] [WordPress Trac] #10559: Allow a custom subdir in wp_upload_dir
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 6 19:21:26 UTC 2009
#10559: Allow a custom subdir in wp_upload_dir
---------------------------+------------------------------------------------
Reporter: aaroncampbell | Owner: dd32
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: Filesystem | Version:
Severity: normal | Keywords: has-patch needs-testing
---------------------------+------------------------------------------------
Sometimes it's nice to keep a certain set of uploaded files separate from
the rest. Especially if you're not allowing direct access to them. I
usually do this by putting the files in a subdirectory of the uploads
directory with a .htaccess rule to block access. I've been using a
modified version of the wp_upload_dir which allows you to specify a sub-
directory. For example, `wp_upload_dir( null, 'premiums')` would use a
directory like `wp-content/uploads/premiums/2009/08`
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10559>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list