media-command icon indicating copy to clipboard operation
media-command copied to clipboard

Import into specific directory/location

Open groobo opened this issue 4 years ago • 2 comments

Is there a way to change the default location where the media is imported into? Ideally, I'd like to see a flag setting that tells wp media import to store the files in a specific directory at /wp-content/uploads/ Thanks

groobo avatar Jun 18 '21 21:06 groobo

A wonderful idea I would love to see as well. Having this would allow for other automation that is not reliant on whatever month/year you happen to be in if you use that method.

I suppose it would be something similar to:

[--skip-copy]
    If set, media files (local only) are imported to the library but not moved on disk. File names will not be run through [wp_unique_filename()](https://developer.wordpress.org/reference/functions/wp_unique_filename/) with this set.

But also allow us to pull in remote images. I think I can use the above to first upload them via SFTP into a directory I choose.

buckmanhands avatar Aug 14 '23 17:08 buckmanhands

I'm open to looking at a pull request for this one!

danielbachhuber avatar Nov 10 '23 14:11 danielbachhuber