fixed GH #2686: Uploads larger than 2GB fail

This commit is contained in:
Günter Obiltschnig 2020-01-21 21:19:07 +01:00
parent ba0acff719
commit 35d73695f8

View File

@ -435,7 +435,7 @@ void HTMLForm::writeMultipart(std::ostream& ostr)
// count only, don't move stream position
std::streamsize partlen = part.pSource->getContentLength();
if (partlen != PartSource::UNKNOWN_CONTENT_LENGTH)
pCountingOutputStream->addChars(static_cast<int>(partlen));
pCountingOutputStream->addChars(partlen);
else
pCountingOutputStream->setValid(false);
}