NxtFi
  • NxtFi Blockchain
  • Testing Network
  • Block Viewer
  • Playground
  • Authentication
  • Create New Block
  • Blockchain Libraries
    • NxtFi Tools
    • Javascript - CreateBlock
  • Smart Contracts
  • The Storage System
  • Upload Media Files
  • Blockchain API Interactions
  • Access Control Layer
    • How it Works
    • Syntax & Smart Contract requirements
    • Example
  • API - Listing Files
  • API Reference
    • Get node health
    • Get the last block
    • Get block information by hash
    • Get block information by timestamp
    • Get block information by height
    • Get files from storage by scope
    • Storage tracking interactions
    • Storage tracking timestamp block info
    • Submit new block
    • Presign media file upload
Powered by GitBook
On this page
  • Obtain file content from storage by scope
  • Another available option
  1. API Reference

Get files from storage by scope

Syntax for getting directories and files content from storage

Obtain file content from storage by scope

GET https://test-001-node.cloud.nxtfi.org/v2 /_storage/<scope>/<dirName>/<fileName>

If the file was saved without being placed inside a folder-like filename, the <dirname> part can be left out.

If the query call point to a directory, the response will display only files listed in the specified key (directory).

if listing folders as well as files is needed, the query call to the directory must include the query string with the raw option set to true (/_storage/<scope>/<dirName>/?raw=1)

Query Parameters

Name
Type
Description

scope*

String

scope were file or directory was stored

filename*

String

Path to file

dirname

String

folder like prefix name

Another available option

PreviousGet block information by heightNextStorage tracking interactions

Last updated 1 year ago