I would love to extend Craft with a custom AssetSourceType. However it looks like components of type 'assetSource' are not extensible (enableForPlugins = false).

Is there a way to do this? Or can I simply swap core services in the common.php without hacking the core?

My goal is to provide a 'S3CompatAssetSourceType' - the main difference to the S3AssetSourceType is the API endpoint.


1 Answer 1


Custom Asset sources are not possible in Craft 2 without some core hacking.

However totally doable in Craft 3 (even in the dev preview). There is an example of how to pull it off here.

  • Besides changing enableForPlugins to true in common.php, what other core hacking would be necessary?
    – Ben Croker
    Jul 20, 2016 at 20:27
  • The reason I ask is because this didn't seem to do the trick for me...
    – Ben Croker
    Jul 20, 2016 at 20:39
  • 1
    Possible something has broken or changed since we released the last dev preview. Good news is, we hope to have a new one out soonish.
    – Brad Bell
    Jul 20, 2016 at 22:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.