---
title: "getSize"
source: "https://browserpod.io/docs/reference/BinaryFile/getSize"
---

# getSize

Get the size in bytes of a BinaryFile stored in a BrowserPod Pod's virtual filesystem, returned as a promise.

```ts
class BinaryFile {
  async getSize(): Promise<number>;
}
```

## Parameters

`getSize` does not have any parameters.

## Returns

`getSize` returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) which is resolved when the operation has succeeded. The promise resolves to the byte size of the file.
