# => │ json │ │
# => │ url │ https://httpbin.org/post │
# => ╰─────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────╯
```
If the file happens to be a text file, you may need to additionally convert it to binary data before sending it. This can be done using the `into binary` command.
```nu
http post https://httpbin.org/post --content-type "multipart/form-data" {
doc: (open -r ~/Downloads/README.txt | into binary),
description: "Documentation file"
}
# => ╭─────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
# => │ args │ {record 0 fields} │
# => │ data │ │
# => │ │ ╭──────┬───────────────────────────────────────────────────────────────────────────────────────────────╮ │
# => │ files │ │ doc │ To use Nu plugins, use the register command to tell Nu where to find the plugin. For example: │ │
# => │ │ │ │ │ │
# => │ │ │ │ > register ./nu_plugin_query │ │
# => │ │ ╰──────┴───────────────────────────────────────────────────────────────────────────────────────────────╯ │
# => │ │ ╭─────────────┬────────────────────╮ │
# => │ form │ │ description │ Documentation file │ │
# => │ │ ╰─────────────┴────────────────────╯ │
# => │ │ ╭─────────────────┬────────────────────────────────────────────────────────────────────╮ │
# => │ headers │ │ Accept │ */* │ │
# => │ │ │ Accept-Encoding │ gzip │ │
# => │ │ │ Content-Length │ 476 │ │
# => │ │ │ Content-Type │ multipart/form-data; boundary=f872d6c3-7937-426d-b266-de562b777e1d │ │
# => │ │ │ Host │ httpbin.org │ │
# => │ │ │ User-Agent │ nushell │ │
# => │ │ │ X-Amzn-Trace-Id │ Root=1-66b28eef-4998c6ab0ef5becb19ca7f6f │ │
# => │ │ ╰─────────────────┴────────────────────────────────────────────────────────────────────╯ │
# => │ json │ │
# => │ url │ https://httpbin.org/post │
# => ╰─────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
```