Increase screenshot size limit to 1 MiB.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2021-01-31 10:35:35 +01:00
parent c22dc4fcab
commit 34ff6e12a6
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ entry_type parse_formdata()
std::uint8_t screenshot_counter{1};
for (const auto &screenshot : cgi.getFiles())
{
constexpr size_t size_limit{1024 * 512};
constexpr size_t size_limit{1024 * 1024};
if (screenshot.getDataLength() > size_limit)
{
throw runtime_error{format("The screenshot “{0:s}” is too big. "