Upload Data
Upload Data Function
IPFS Upload Data
Uploads data to the IPFS network. This function requires inputs as follows:
- Ipfs Pinning Service 1 : Struct, holds the url and name of the pinning service to send the request to.
- Bearer Token 2 : The API token for authentication.
- Data To Upload 3 : The data to upload(as an array of bytes).
- Save As 4 : Mandatory filename for the uploaded data on IPFS.
info
If Success is True that only means the upload to the IPFS network was successful.
If successful returns outputs as follows:
- Request Handle 5 : Handle to a HTTP request, allows for cancellation of an ongoing request.
- Bytes Sent 6 : Number of bytes sent while the request is still ongoing.
- Bytes Total 7 : Total bytes expected to receive.
- Response 8 : Struct, holds data such as headers, status code, and body of the response of the HTTP request.
- CID 9 : The CID of the uploaded data.