This functionality is already implemented in Mintbox
Acceptance criteria:
Supported providers should include:
NFTStorage
Pinata
AWS S3
Mock provider
There should be documentation on how to implement a custom storage provider
All providers should follow the same interface
Provider selection should be made using enum as a parameter
Support for both single-file and batch uploading should be implemented
Support for both files and in-memory objects
Support for all kinds of inputs, including byte arrays, input streams...
The output of this function(s) should allow the user to clearly understand where each file is hosted. It should be compatible with "easy way to add key-value pair..."
To discuss:
how should we return the result? Should it be always a file, always an array/object or should we have 2 separate functions to let the user choose what he wants? A: added to description
how should the return structure look like? A: added to description
Q: how do we want to configure and use the provider? A: create a Factory class that returns a configured provider after providing it required credentials
This functionality is already implemented in Mintbox
Acceptance criteria:
To discuss:
how should we return the result? Should it be always a file, always an array/object or should we have 2 separate functions to let the user choose what he wants?A: added to descriptionhow should the return structure look like?A: added to descriptionexample return structure for a file:
example return structure for an in-memory object:
content can be any object, array, string etc.