File uploader

[apis/nftport/v0/File uploader]


Uploads NFT file to IPFS, and returns the URL and other properties of the uploaded file. https://docs.nftport.xyz/docs/nftport/?search=upload-a-file-to-ipfs


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
    }

    https://docs.nftport.xyz/docs/nftport/?search=upload-a-file-to-ipfs#response-body

  • response:

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

    Sends the original response.

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

Last updated