[wp-hackers] [2.1] Use built-in functions to upload directly into a different folder

Michael D Adams mikea at turbonet.com
Thu Jan 18 18:05:44 GMT 2007


On Jan 18, 2007, at 7:42 AM, Viper007Bond wrote:

> What's the best way to use the built-in image uploading functions  
> to upload
> to a directory other than the one set in the admin area? I wrote a  
> gallery
> plugin that uses the functions and the client now wants the gallery to
> upload to it's own folder.

The output of wp_upload_dir() as defined in wp-includes/functions.php  
is filtered at the end through the 'upload_dir' hook.  Is that enough  
for your purposes?

Michael


More information about the wp-hackers mailing list