media-command
media-command copied to clipboard
Import into specific directory/location
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
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.
I'm open to looking at a pull request for this one!