Skip to main content
Every stored file is reflected as a document in the "_storage" system table. File metadata of a file can be accessed from queries and mutations via db.system.get and db.system.query:
This is an example of the returned document:
The returned document has the following fields:
  • sha256: a base16 encoded sha256 checksum of the file contents
  • size: the size of the file in bytes
  • contentType: the ContentType of the file if it was provided on upload
You can check the metadata manually on your console.

Accessing metadata from actions (deprecated)

Alternatively, a storage.getMetadata() function is available to access individual file metadata from actions and HTTP actions:
Note that storage.getMetadata() returns a FileMetadata, which has a slightly different shape than the result from db.system.get.