Increase screenshot size limit to 1 MiB.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c22dc4fcab
commit
34ff6e12a6
|
@ -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. "
|
||||
|
|
Reference in New Issue