Skip to main content
Version: 2.1.0

Upload File

Upload File Function

IPFS Upload File Uploads a local file 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.
  • File To Upload 3 : The path of the file to upload.
  • Save As 4 : Optional alternate filename for the uploaded file on IPFS. If left empty, the original filename will be used.

IPFS Upload File

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.