increase max file size
100KiB => 1MiB
This commit is contained in:
parent
9b579a2361
commit
7369910f84
@ -512,8 +512,8 @@ function switchChannel(channelname) {
|
||||
var files = []
|
||||
|
||||
function addFile(file) {
|
||||
if(file.size > 100000) {
|
||||
alert("that file is too large, max size: 100KiB")
|
||||
if(file.size > 1_000_000) {
|
||||
alert("that file is too large, max size: 1MiB")
|
||||
console.log("file is too big: ", file.name, file.type, file.size);
|
||||
return;
|
||||
}
|
||||
|
@ -381,7 +381,12 @@ function increaseUSERCall(req, res, next) {
|
||||
}
|
||||
console.log(5, "loading routes");
|
||||
app.use(useragent.express());
|
||||
app.use(fileUpload());
|
||||
app.use(fileUpload({
|
||||
limits: {
|
||||
files: 5,
|
||||
fileSize: 1_000_000
|
||||
}
|
||||
}));
|
||||
|
||||
app.use(bodyParser.default.json({ limit: "100mb" }));
|
||||
app.use(bodyParser.default.urlencoded({ limit: "100mb", extended: true }));
|
||||
|
Loading…
x
Reference in New Issue
Block a user