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

Feature: Limit Media Source to sub directory/folder #5

Closed
jgulledge19 opened this issue Mar 9, 2017 · 0 comments
Closed

Feature: Limit Media Source to sub directory/folder #5

jgulledge19 opened this issue Mar 9, 2017 · 0 comments

Comments

@jgulledge19
Copy link
Contributor

Limit a S3 Media Source to sub directory/folder of a given Bucket. Similar to the ability to do so with the local filesystem which uses: basePath and baseUrl.

Why is this needed?
Take for example setting up S3 as a static site with custom domain like: assets.example.com. You want that URL on all assets so you don't want to create lots of different Buckets for each Media Source. It would be ideal to set several Media Sources to one Bucket and to have it be limited to a selected folder.

Reference
https://docs.modx.com/revolution/2.x/administering-your-site/media-sources/media-source-types/media-source-type-file-system

theboxer added a commit that referenced this issue Mar 30, 2017
* origin/pr/6:
  Fixes #5 for Create File at root of MS with a limited folder access
  Fixes #5 check for baseDir for modBrowser init getFiles
  Fixes #5 check for baseDir on Create Diretory Here
  Fixes issue #5 Limit Media Source to a folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant