Automatic organization of uploaded files based on the site tree structure.
This module will make the default upload folder match the URL structure of the page you're uploading in, rather than just uploading
to the Uploads
folder or the default-site
folder if you're using Multisites.
ie. If you upload a file to a page that can be visited at http://www.mysite.com/information/about-us, then that file will be available at http://www.mysite.com/assets/information/about-us/filename.jpg by default, rather than http://www.mysite.com/assets/Uploads.
composer require symbiote/silverstripe-contextawareupload:~2.0
Uploading files via a WYSIWYG field's "Insert Media" button or anything else using the AssetAdmin view will not be affected by this module. I'm hoping this issue will be fixed in the future, and it's been logged here: silverstripe/silverstripe-assets#159
In the meantime however, you can optionally apply an extension so that any files uploaded to the root folder of assets, gets moved into the desired folder.
ie. if File::ParentID == 0, move to default folder.
SilverStripe\Assets\File:
extensions:
- Symbiote\ContextAwareUpload\ForceRootToDefaultExtension
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem