Changed image size limit

This commit is contained in:
TheEssem 2021-06-19 15:11:34 -05:00
parent 4d3e1655e0
commit da8c676320
No known key found for this signature in database
GPG key ID: A3F9F02129092FCA

View file

@ -211,7 +211,7 @@ exports.getType = async (image) => {
}); });
clearTimeout(timeout); clearTimeout(timeout);
const size = imageRequest.headers.has("Content-Range") ? imageRequest.headers.get("Content-Range").split("/")[1] : imageRequest.headers.get("Content-Length"); const size = imageRequest.headers.has("Content-Range") ? imageRequest.headers.get("Content-Range").split("/")[1] : imageRequest.headers.get("Content-Length");
if (parseInt(size) > 20971520) { if (parseInt(size) > 26214400) { // 25 MB
type = "large"; type = "large";
return type; return type;
} }