Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::http::MultipartLimits Struct Reference

Limits for MultipartStreamParser. Exceeding one fails the parse (see MultipartStreamParser::failed()) and deletes the partial file. More...

#include <MultipartStreamParser.hpp>

Public Attributes

size_t max_file_size = 100 * 1024 * 1024
 Per uploaded file.
 
size_t max_field_size = 1024 * 1024
 Per non-file field (kept in memory)
 
size_t max_total_size = 1024ull * 1024 * 1024
 Whole body.
 
size_t max_parts = 1000
 
std::string upload_dir
 

Detailed Description

Limits for MultipartStreamParser. Exceeding one fails the parse (see MultipartStreamParser::failed()) and deletes the partial file.

Member Data Documentation

◆ max_field_size

size_t orbit::http::MultipartLimits::max_field_size = 1024 * 1024

Per non-file field (kept in memory)

◆ max_file_size

size_t orbit::http::MultipartLimits::max_file_size = 100 * 1024 * 1024

Per uploaded file.

◆ max_parts

size_t orbit::http::MultipartLimits::max_parts = 1000

Fields plus files

◆ max_total_size

size_t orbit::http::MultipartLimits::max_total_size = 1024ull * 1024 * 1024

Whole body.

◆ upload_dir

std::string orbit::http::MultipartLimits::upload_dir

Where files are written. Empty: a private directory (mode 0700 on POSIX) created once per process under the system temp directory.


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