[wp-hackers] Set a unique directory for uploads

Gaarai gaarai at gaarai.com
Fri Jan 16 00:01:21 GMT 2009

The easy solution is to go to Settings > Miscellaneous, remove the check 
from the "Organize my uploads into month- and year-based folders" 
option, and click "Save Changes".

The other option is to hook into the upload_dir filter and manually 
modify the path and url options directly in order to set it up however 
you want.

Chris Jean

Mário Gamito wrote:
> Hi,
> I have this blog in WP 2.7
> I usually upload my images and files to a attic directory, just above
> the DocumentRoot of the site. After that, in TinyMCE, I write the URL to
> the image. That's quit a waste of time.
> So today, I've decided to use the upload feature. Configured the galery
> path to "attic" and uploaded a few files and images for testing.
> Well, it worked, but ir also created two directories above "attic": 2009
> and 01. So, the total path for an image is
> /home/user/public_html/attic/2009/01/image.jpg
> I don't wnat this kind of red tape.
> How can I make my images and file being uploaded to
> /home/user/public_html/attic only ?
> Any help would be appreciated.
> Warm Regards,

More information about the wp-hackers mailing list