[wp-hackers] Where Should Plugins Store Files?

Ryan McCue lists at rotorised.com
Mon Sep 13 20:56:48 UTC 2010


 Dougal Campbell wrote:
> But you can't always depend on it to be writable, so you'd want to
> fall back to the uploads dir (and of course, handle errors when that's
> not available either). I'd check which directory was available at
> plugin activation time, and store the result in an option, so that you
> stay consistent once you've started using one location or another.

As I mentioned, the plugin doesn't create the directory or file, so
whether the plugin can write to it or not is irrelevant.


Jacob Santos wrote:
> This would break on my system. I specifically set the uploads directory with
> "full" permissions meaning write / read by apache. No other directory has
> these read / write permissions.
Again, the plugin *only reads from the directory*, it doesn't need write
permissions.

-- 
Ryan McCue
<http://ryanmccue.info/>



More information about the wp-hackers mailing list