Creates an instance of the IPFS class
The IPFS provider to use ('pinata' or 'filebase')
Configuration for the selected provider
Private
configPrivate
providerUploads a file to IPFS (Node.js version - accepts file path)
Path to the file to upload
Optional
fileName: stringName to use for the file
Promise resolving to the IPFS content identifier (CID)
Error if provider is not supported or upload fails
Uploads a file to IPFS (Browser version - accepts File object)
File object to upload
Optional
fileName: stringName to use for the file (optional, will use file.name if not provided)
Promise resolving to the IPFS content identifier (CID)
Error if provider is not supported or upload fails
Uploads a JSON object to IPFS Supports multiple providers: Pinata and Filebase
The JSON object to upload
Optional
fileName: stringName to use for the file
Promise resolving to the IPFS content identifier (CID)
Error if provider is not supported or upload fails
Class for handling IPFS file uploads through various providers