Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FileMetadata

import type { FileMetadata } from "https://esm.sh/@supabase/storage-js@2.99.0/dist/index.d.mts";

Metadata object returned by the Storage API for files Contains information about file size, type, caching, and HTTP response details

interface FileMetadata {
[key: string]: any;
cacheControl: string;
contentLength: number;
eTag: string;
httpStatusCode: number;
lastModified: string;
mimetype: string;
size: number;
}

§Index Signatures

§
[key: string]: any

§Properties

§
cacheControl: string
[src]

Cache control directive (e.g., "max-age=3600")

§
contentLength: number
[src]

Content length in bytes (usually same as size)

§
eTag: string
[src]

Entity tag for caching and conditional requests

§
httpStatusCode: number
[src]

HTTP status code from the storage backend

§
lastModified: string
[src]

Last modification timestamp (ISO 8601)

§
mimetype: string
[src]

MIME type of the file

§
size: number
[src]

File size in bytes