Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import into specific directory/location #146

Open
groobo opened this issue Jun 18, 2021 · 2 comments
Open

Import into specific directory/location #146

groobo opened this issue Jun 18, 2021 · 2 comments

Comments

@groobo
Copy link

groobo commented Jun 18, 2021

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

@buckmanhands
Copy link

buckmanhands commented Aug 14, 2023

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.

@danielbachhuber
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants