View Source Appwrite.Types.File (appwrite v0.2.1)

A file stored in an Appwrite Storage bucket.

System fields ($id, $createdAt, etc.) are mapped to snake_case.

Fields

  • id (String.t()) — file ID ($id).
  • bucket_id (String.t()) — parent bucket ID (bucketId).
  • created_at (String.t()) — upload timestamp in ISO 8601 ($createdAt).
  • updated_at (String.t()) — last-updated timestamp in ISO 8601 ($updatedAt).
  • permissions ([String.t()]) — Appwrite permission strings ($permissions).
  • name (String.t()) — original file name.
  • signature (String.t()) — MD5 signature of the file content.
  • mime_type (String.t()) — detected MIME type.
  • size_original (non_neg_integer()) — original file size in bytes.
  • chunks_total (non_neg_integer()) — total chunks for chunked uploads.
  • chunks_uploaded (non_neg_integer()) — chunks successfully uploaded so far.

Summary

Types

t()

@type t() :: %Appwrite.Types.File{
  bucket_id: String.t(),
  chunks_total: non_neg_integer(),
  chunks_uploaded: non_neg_integer(),
  created_at: String.t(),
  id: String.t(),
  mime_type: String.t(),
  name: String.t(),
  permissions: [String.t()],
  signature: String.t(),
  size_original: non_neg_integer(),
  updated_at: String.t()
}