This package is abandoned and no longer maintained. The author suggests using the symbiote/silverstripe-contextawareupload package instead.

Automatic organization of uploaded files based on the site tree structure.

Installs: 4 314

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0


2.0.0 2018-09-10 05:55 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:14:24 UTC


Build Status Latest Stable Version Latest Unstable Version Total Downloads License

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, then that file will be available at by default, rather than

Composer Install

composer require symbiote/silverstripe-contextawareupload:~2.0


  • SilverStripe 4.1+
  • (Optional) Multisites


Known limitations

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:

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.

    - Symbiote\ContextAwareUpload\ForceRootToDefaultExtension