Wordpress - Can I upload media to a specific folder?

  1. Go to Dashboard -> Settings -> Media
  2. Enter the desired location in Store uploads in this folder
  3. Uncheck Organize my uploads into month- and year-based folders

This will specify the global upload location. To specify a per-file upload location, you'll need to use a Plugin, such as WP Easy Uploader (not an endorsement, per se; it was just the first one I found).


I would advise against un-ticking 'Organize Media' unless in a situation where you are handling storage elsewhere.

Having a large amount of files in one directory is flawed for many reasons, though there is some situations where this is unavoidable but for a website this is always unavoidable.

I inherited a Wordpress website and was tasked with moving it to another host. This proved to be a problem since all uploads were in one folder, over 93,000 files - yes 93 thousand.

No FTP client was able to index that many files and simply would not navigate into the folder.

I had no shell access to the system.

I couldn't do a full dump using the hosting control panel as there was no option to do so.

I had to rely on the hosting company to do a dump for me, which was a task in itself tying to get them to do it.

Apart from these potential issues, indexing thousands of files is slower than indexing tens or hundreds of files - simply, performance is effected with large amounts of files in one directory.


Another solution to this problem:

  1. Go to Dashboard → Settings → Media and uncheck "Organize my uploads into month- and year-based folders". So now every file you upload will be placed in "wp-content\uploads" [optional step, but recomended to find easily new uploads for moving to another folder].
  2. Install "Media File Manager" plugin.
  3. Go to Dashboard → Media → Media File Manager.

Here you can create all folders you wish to organize your contents. The two divided window is just for moving content between different folders, you create a folder in one side and it'll be refreshed in both. Use two sides to navigate to current and destiny folders of your content, then use left or right arrow to move it, it's easy!

Notice DB is updated also, so if for example you move an image you're currently using elsewhere in your web, you'll have to reselect this image from Media Library or it won't appear in your web.

Hope you'll find this info useful. Regards!

Tags:

Uploads