cpp-ipfs-http-client: ipfs::http::FileUpload Struct Reference

cpp-ipfs-http-client IPFS C++ client library

Public Types | Public Attributes | List of all members
ipfs::http::FileUpload Struct Reference

HTTP file upload. More...

`#include <ipfs/http/transport.h>`

## Public Types
enum | Type { Type::kFileContents, Type::kFileName }
| The type of the `data` member. More...

## Public Attributes
const std::string | path
| File name to pretend to the web server.
Type | type
| The type of the `data` member.
const std::string | data
| The data to be added. More...

## Detailed Description

HTTP file upload.

## Member Enumeration Documentation

## ◆ Type

enum ipfs::http::FileUpload::Type
| strong

The type of the `data` member.

Enumerator
kFileContents | The file contents, put into a string by the caller. For small files.
kFileName | File whose contents is streamed to the web server. For big files.

## Member Data Documentation

## ◆ data

const std::string ipfs::http::FileUpload::data

The data to be added.

Either a file name from which to read the data or the contents itself.

The documentation for this struct was generated from the following file:

- /media/melroy/Data/Projects/cpp-ipfs-http-client/include/ipfs/http/transport.h