[wp-hackers] Where Should Plugins Store Files?

Otto otto at ottodestruct.com
Mon Sep 13 03:42:58 UTC 2010


On Sun, Sep 12, 2010 at 8:41 PM, Raj <list at expost.org> wrote:
> Can I
> rely on wp-content/uploads to always have read/write permissions be the
> location where files can be placed if necessary?

Rely? No.
Assume? Yes.

You can't really "rely" on anything. But it is a generally safe
assumption that the uploads directory is writable.

Use the wp_upload_dir function to retrieve the upload directories path and URL.

-Otto


More information about the wp-hackers mailing list