Skip to main content
uploadFileToIpfs(file): Promise<string>
Uploads a file to IPFS and returns the IPFS URL

Parameters

file

File The file to upload

Returns

Promise<string> The IPFS URL of the uploaded file