'Generic Commit'
This commit is contained in:
@@ -51,7 +51,7 @@ void PutHandler::handle_put_object(const drogon::HttpRequestPtr& req, std::funct
|
||||
if (!contentLengthHeader.empty()) {
|
||||
try {
|
||||
size_t contentLength = std::stoull(contentLengthHeader);
|
||||
const size_t MAX_UPLOAD_SIZE = 2ULL * 1024 * 1024 * 1024; // 2GB
|
||||
const size_t MAX_UPLOAD_SIZE = 6ULL * 1024 * 1024 * 1024; // 6GB
|
||||
if (contentLength > MAX_UPLOAD_SIZE) {
|
||||
resp->setStatusCode(drogon::k413RequestEntityTooLarge);
|
||||
nlohmann::json response = {{"result", "error"}, {"error", "File too large"}};
|
||||
|
Reference in New Issue
Block a user