{"id":67370,"date":"2011-12-21T16:00:41","date_gmt":"2011-12-21T21:00:41","guid":{"rendered":"http:\/\/wpmu.org\/?p=67370"},"modified":"2011-12-21T19:44:44","modified_gmt":"2011-12-22T00:44:44","slug":"store-wordpress-media-on-your-server-in-a-personalized-folder-system","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/store-wordpress-media-on-your-server-in-a-personalized-folder-system\/","title":{"rendered":"Store WordPress Media on Your Server in a Personalized Folder System"},"content":{"rendered":"<p><a rel=\"lightbox[67370]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/store-wordpress-media-on-your-server-in-a-personalized-folder-system\/film-big\/\" rel=\"attachment wp-att-67371\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-67371\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/film-big.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"628\" height=\"359\" \/><\/a><\/p>\n<p>When WordPress stores media on your server, by default it follows a system that looks like this:<\/p>\n<pre style=\"padding-left: 30px;\">\/wp-content\/uploads\/(year)\/(month)<\/pre>\n<p>So, an example would look like this:<\/p>\n<pre style=\"padding-left: 30px;\">http:\/\/www.example.com\/wp-content\/uploads\/2011\/12\/my-actual-photo.jpg<\/pre>\n\n<p>Of course some people will never touch the media files on the server, but for those who want that option, it would be much easier to have a personalized file system that makes it easy to find what you want.<\/p>\n<p>Enter the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/custom-upload-dir\/\" rel=\"noopener\" target=\"_blank\">Custom Upload Dir plugin<\/a>, which will allow you do to just that.<\/p>\n<h2><strong>\u00a0The Plugin in Action<\/strong><\/h2>\n<p>This plugin allows you to set up whatever structure you like, and it\u2019s as easy as setting your permalinks.<\/p>\n<p>For example, say you have a number of users who upload files to your site. Instead of just allowing WordPress to throw everyone\u2019s files into the same folders based on year and month, you could easily set up a system that first organized each user\u2019s files into a different folder. And then you could break it down by year and month if you chose to.<\/p>\n<p>Here\u2019s an example where I set up users to have their own folders (and then the media is divided by year).<\/p>\n<h2><a rel=\"lightbox[67370]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/store-wordpress-media-on-your-server-in-a-personalized-folder-system\/user-folder\/\" rel=\"attachment wp-att-67373\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-67373\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/user-folder.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"627\" height=\"546\" \/><\/a><strong>Other Options<\/strong><\/h2>\n<p>The plugin has a number of options for you choose from, and it also allows you to specify using a different base folder than the default \u201cuploads\u201d folder.<\/p>\n<p>Here\u2019s a look at the settings page.<\/p>\n<p><a rel=\"lightbox[67370]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/store-wordpress-media-on-your-server-in-a-personalized-folder-system\/settings-6\/\" rel=\"attachment wp-att-67374\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-67374\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/settings1.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"626\" height=\"566\" \/><\/a><\/p>\n<h2><strong>Easy to Use<\/strong><\/h2>\n<p>This plugin was much easier to use than I expected. As I mentioned, it\u2019s as easy to use as permalinks, and it takes effect just as fast.<\/p>\n<p>You can download the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/custom-upload-dir\/\" rel=\"noopener\" target=\"_blank\">Custom Upload Dir plugin here<\/a>.<\/p>\n\n<p>Photo: <a href=\"http:\/\/www.bigstockphoto.com\/image-4438345\/stock-photo-film\" target=\"_blank\">Film<\/a> from BigStock<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Automatically organize your media files on your server however you like.<\/p>\n","protected":false},"author":84404,"featured_media":67372,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[4],"tags":[3361,28],"tutorials_categories":[],"class_list":["post-67370","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins","tag-media","tag-wordpresscom"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/67370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/84404"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=67370"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/67370\/revisions"}],"predecessor-version":[{"id":216221,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/67370\/revisions\/216221"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/67372"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=67370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=67370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=67370"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=67370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}