Push Files
Call the .PushFileToStorageEngine() to push file to storage or IPFS.
Returns
The function returns the file_hash for the stored file or null if the file could not be stored.
Required parameters
Last updated
Call the .PushFileToStorageEngine() to push file to storage or IPFS.
The function returns the file_hash for the stored file or null if the file could not be stored.
Last updated
Parameter | Description |
---|---|
file - File or Blob or string
File to push to storage or ipfs
APIServer - string
Target API server
storageEngine - StorageEngine
Storage engine to use, either Aleph storage or IPFS.
Possible values: StorageEngine.STORAGE
or StorageEngine.IPFS