Reference
?

Store.head

Returns a stored file's metadata without its bytes.
Store.head(key) → Promise<Metadata>

Returns an object's metadata, its size, content type, and last-updated time, without transferring the bytes. Use it to check a file's size or type before deciding what to do with it.

Parameters
key
string
RequiredThe object's key within the store.
Inspect before reading
const meta = await Uploads.head(key);
meta.size; // bytes