How to use a custom Object/Asset Storage Solution With Broadleaf

Broadleaf provides you the flexibility to use other 3rd party services to store your assets. To perform a migration of existing objects to another solution, please follow this guide.

  1. You’ll have to implement a custom StorageProvider for the service you are using to interact with the Broadleaf Storage Provider.
    1. A default FilesystemStorageProvider is available to work with internal files.
    2. GoogleCloudStorageProvider is recommended as a reference for implementing your custom provider.
  2. After that the assets should be uploaded to the 3rd party service.
  3. Finally, change the default FilesystemStorageProvider to your custom implementation and adjust the configuration if required.

Additional resources:

Asset Services Configuration
Asset Services Release Notes
The class com.broadleafcommerce.asset.autoconfigure.InternalAssetProperties to view asset related properties which may be relevant to your implementation.