# `PlaywrightEx.FilePayload`
[🔗](https://github.com/ftes/playwright_ex/blob/v0.9.0/lib/playwright_ex/file_payload.ex#L1)

An in-memory file passed to a Playwright file input.

`buffer` contains the raw file bytes. It is base64-encoded only when the
payload is serialized for the Playwright protocol.

Reference: https://playwright.dev/docs/api/class-locator#locator-set-input-files

# `t`

```elixir
@type t() :: %PlaywrightEx.FilePayload{
  buffer: binary(),
  mime_type: String.t() | nil,
  name: String.t()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
