Content

Upload file to IPFS

Changed on

Uploads a file to IPFS and returns the content CID.

Supports single file uploads with automatic content verification. The uploaded file is added to IPFS and pinned for persistence.

See also:.*

post/api/upload

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/upload
  • Auth: none declared

Response

File uploaded successfully

CIDstring required

Changes

    • info

      added the non-success response with the status

    • breaking

      the response's property type changed from string to object for status

    • breaking

      the response's property type changed from string to object for status

    • breaking

      the response's property type changed from string to object for status

    • breaking

      the response's property type changed from string to object for status

    • breaking

      the response's property type changed from string to object for status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status