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

Customise Plupload Directory #1248

Closed
jcampbell05 opened this issue Apr 11, 2013 · 5 comments
Closed

Customise Plupload Directory #1248

jcampbell05 opened this issue Apr 11, 2013 · 5 comments
Labels
Status: Help Wanted We have not prioritized this yet, but you can help make it happen to speed it up Type: Enhancement Enhancements to features that already exist, but are not major additions

Comments

@jcampbell05
Copy link

Is there a way of customising where images are uploaded either through a hook or filter? If not can it be added in somehow.

@ghost ghost assigned sc0ttkclark Apr 11, 2013
@sc0ttkclark
Copy link
Member

Cool idea, let me think on it and see if there's a way to do this through Pods or if it will be strictly dealing with WP itself.

@jcampbell05
Copy link
Author

Yes I thought doing it through pods would be awesome, but if I could do
it through hooks and filters then that would be cool as well especially
if I wanted it to apply to more than one fields of a paticular pod :)

@sc0ttkclark sc0ttkclark added the Status: Help Wanted We have not prioritized this yet, but you can help make it happen to speed it up label Dec 29, 2015
@sc0ttkclark sc0ttkclark removed their assignment Dec 29, 2015
@christoferw
Copy link

+1
i am currently looking for an option to move files uploaded outside the default media directory.
i already tryed some hools like wp_handle_upload_prefilter without success

@pglewis
Copy link
Contributor

pglewis commented Feb 3, 2016

What's the use case here? Our image uploads integrate with the media library, so all images end up saved as attachment post types and then located via WordPress's normal facilities. Saving loose files from potentially untrusted sources in a location outside WordPress's designated uploads directory seems like a bad idea unless there's a very compelling reason.

@christoferw
Copy link

Reasons:

Attachments for that kind of POD/CPT

  • are not intended to be used somewhere else on the Wordpress site
  • should be handled more private, e.g. with htacess rules for that folder that checks some things..
  • should not be added to the imagesitemap / published
  • should be archived in another folder structure to be reused for other purposes.
  • are no images but zip files, pdf, etc...

by the way: it could be the normal upload directory if that can fit the requirements...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Help Wanted We have not prioritized this yet, but you can help make it happen to speed it up Type: Enhancement Enhancements to features that already exist, but are not major additions
Projects
None yet
Development

No branches or pull requests

4 participants