---
title: "ClikaRT::http::FormPart"
sidebar_label: "FormPart"
description: "One part of a multipart/form-data body (text fields and file parts). A text field has an empty filename + content_type; a file part carries both."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--struct">struct</span>

**Header:** `ClikaRT/http/server.h`

One part of a `multipart/form-data` body (text fields and file parts). A text field has an empty [`filename`](./FormPart.md#filename) + [`content_type`](./FormPart.md#content_type); a file part carries both.

## Data members

### name {#name}

<div class="api-signature">

`std::string` **`name`**

</div>

form field name of this part

<div class="api-declared">

Declared in `ClikaRT/http/server.h`, line 85

</div>

### filename {#filename}

<div class="api-signature">

`std::string` **`filename`**

</div>

empty ⇒ text field

<div class="api-declared">

Declared in `ClikaRT/http/server.h`, line 86

</div>

### content\_type {#content_type}

<div class="api-signature">

`std::string` **`content_type`**

</div>

empty for text fields

<div class="api-declared">

Declared in `ClikaRT/http/server.h`, line 87

</div>

### content {#content}

<div class="api-signature">

`std::string` **`content`**

</div>

field value or raw file bytes

<div class="api-declared">

Declared in `ClikaRT/http/server.h`, line 88

</div>
