Directory for file uploads

At the bottom of the Media Settings screen, you can change the location of your uploaded files. If you'd like the path to be something other than wp-content/uploads, you can specify it here. Why would you want to? Perhaps you anticipate that your visitors will link directly to your uploaded files, and you'd like the URLs to be shorter (e.g. img) or more descriptive (e.g. reports). Maybe you're migrating a site from another CMS and you want to store your new files alongside the old ones.

You should enter a path relative to your WordPress installation. You also need to specify the full URL in the next field. If this directory does not exist, WordPress will try to create it the first time you (or one of your content authors) use the media uploader. Of course, you can simply create the directory and make it writeable.

You can also choose whether WordPress creates date-based subdirectories for your upload files. By default, WordPress will create subdirectories for each year, and within those, for each month. Your files will be stored according to the dates they were uploaded. For example, if you upload a file called image.gif in December of 2010, it would be stored as wp-content/uploads/2010/12/image.gif. If you uncheck this option, all of your uploaded files will be stored in your specified upload directory. Our example file would be stored as wp-content/uploads/image.gif whether you uploaded it in December or June.

Was this article helpful?

0 0

Post a comment