Skip to main content

đŸ”ŧ Upload Data

This section covers the steps to upload data to Lighthouse. Four types of uploads are supported: file, text/JSON, buffer, and CAR files.

  1. Upload File
  2. Upload Text/JSON
  3. Upload Buffer
  4. Upload CAR File
New in v0.4.4

All upload methods now support a flexible options object pattern with storage type headers. The storageType option accepts "annual" or "lifetime" values and is passed as an X-Storage-Type header to the backend. See individual method docs for details.

tip

Check the Filecoin First section to upload via Filecoin Virtual Machine.