Добавлен лимит на размер файла при распаковке

This commit is contained in:
Book Pauk
2020-01-26 15:17:45 +07:00
parent 7997c486cf
commit 639f726c83
3 changed files with 34 additions and 7 deletions

View File

@@ -27,8 +27,8 @@ class ReaderWorker {
fs.ensureDirSync(this.config.tempPublicDir);
this.workerState = new WorkerState();
this.down = new FileDownloader();
this.decomp = new FileDecompressor();
this.down = new FileDownloader(config.maxUploadFileSize);
this.decomp = new FileDecompressor(2*config.maxUploadFileSize);
this.bookConverter = new BookConverter(this.config);
this.remoteWebDavStorage = false;