The driver contains [IStorageDriver] Interface which defines common functions of all kinds of storages such as:
IPFS
FileSystem
API Upload/Download
FTP
Only IPFS and basic FileSystem drivers are available now. Other will be added later. Thats why the Issue #130 will be still open even after this merge request will be processed.
There is not to many common functions. the main point of this issue was separation of the IPFS driver out of the NFTHelpers. Thats why we should specify more what functions should be added. For sure we need to add functions like: AddFile, GetFile, RemoveFile, etc.
First level of separation of IPFS from the VEDriversLite to separated package VEDriversLite.StorageDriver.
Storage Driver
The driver contains [IStorageDriver] Interface which defines common functions of all kinds of storages such as:
Only IPFS and basic FileSystem drivers are available now. Other will be added later. Thats why the Issue #130 will be still open even after this merge request will be processed.
If you want to use this driver, you can create the instance of the StorageHandler or use the one in VEDLDataContext and call common functions such as AddDriver or some specific such as Write File to IPFS, etc.
There is not to many common functions. the main point of this issue was separation of the IPFS driver out of the NFTHelpers. Thats why we should specify more what functions should be added. For sure we need to add functions like: AddFile, GetFile, RemoveFile, etc.
The examples you can find in the TestVEDriversLite project. How to upload file to IPFS, How to get file from IPFS
Here is the example of use in VEBlazor component library