18 crow::response handleOctetStreamUpload(
const std::string& filename,
const crow::request& req);
19 crow::response handleMultipartFormUpload(
const crow::request& req);
25 std::optional<std::string> sanitizeFilename(
const std::string& filename)
const;
27 constexpr static const inline char MULTIPART_FORM_DATA_PART_NAME[] =
"file";
28 constexpr static const inline char MULTIPART_FORM_DATA_PART_FILENAME[] =
"filename";
29 constexpr static const inline char CONTENT_DISPOSITION_HEADER_NAME[] =
"Content-Disposition";
30 constexpr static const inline char CONTENT_TYPE_HEADER_NAME[] =
"Content-Type";
31 constexpr static const inline char CONTENT_TYPE_MULTIPART_FORM_DATA[] =
"multipart/form-data";
32 constexpr static const inline char CONTENT_TYPE_APPLICATION_OCTET_STREAM[] =
"application/octet-stream";