hotAdd size limit
This commit is contained in:
parent
0a700e6f94
commit
e9d1844624
@ -22,6 +22,7 @@ const exp: Modul = {
|
|||||||
if (!soubor) return "tak pico ael na co";
|
if (!soubor) return "tak pico ael na co";
|
||||||
|
|
||||||
if (!formaty.includes(soubor.name.slice(-3))) return "tuten format nechcy";
|
if (!formaty.includes(soubor.name.slice(-3))) return "tuten format nechcy";
|
||||||
|
if (soubor.size > 2e6) return "min nes dva mebagajyt pls";
|
||||||
|
|
||||||
const zaklad = `${kmenovaCesta}/${mes.author.id}`;
|
const zaklad = `${kmenovaCesta}/${mes.author.id}`;
|
||||||
for (const format of formaty) {
|
for (const format of formaty) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user