# `ExWapp.Media.Upload`
[🔗](https://github.com/elchemista/ex_wapp/blob/v0.1.5/lib/ex_wapp/media/upload.ex#L1)

Metadata returned after uploading encrypted media to WhatsApp.

The upload struct contains everything needed to embed a media reference into
an outbound protobuf message.

# `t`

```elixir
@type t() :: %ExWapp.Media.Upload{
  direct_path: binary() | nil,
  file_enc_sha256: binary(),
  file_length: non_neg_integer(),
  file_sha256: binary(),
  handle: binary() | nil,
  media_key: binary(),
  media_key_timestamp: non_neg_integer() | nil,
  object_id: binary() | nil,
  type: ExWapp.Media.media_type(),
  url: binary() | nil
}
```

---

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