File uploader

[apis/nftport/v0/File uploader]

Uploads NFT file to IPFS, and returns the URL and other properties of the uploaded file.

Keywords: web3, blockchain, crypto, nft, product, dynamic, upload, file, image, animation, minting

Input ports

  • file:

    {"data": string, "fileName": string, "contentType": string}

    Receives base64-encoded binary file contents.

  • params: {"api_key": string}

Output ports

  • data:

      "response": "OK",
      "ipfs_url": string,
      "file_name": string,
      "content_type": string,
      "file_size": number,
      "file_size_mb": number

  • response:

    {"status": number, "headers": {string: any}, "body": string}

    Sends the original response.

  • error: {"error": string, "details": any}

Last updated