- 1. Introduction
- 2. Basics
Last Updated: 2018-10-09
When uploading media assets to the media library they are stored in the current media storage. To enable this feature you have to register a storage service first. Besides storing the uploaded media asset the media storage is also responsible for storing all resized and cropped versions of images that you create.
How To Register Media Storage
To register a storage service you need to register a service that implements
Piranha.IStorage in your
Startup.cs. Piranha provides two standard packages available for media storage that you can choose between, you can read more about them in their respective section Local File Storage and Azure Blob Storage.
Other Types of Storage
You can easily implement your own storage services by implemented the interfaces
Piranha.IStorageSession. You can read more about this here.