Увеличил лимиты на загрузку\скачивание файлов до 50Мб

This commit is contained in:
Book Pauk
2019-02-08 19:07:26 +07:00
parent 586ef50363
commit e4c9bc4940
3 changed files with 6 additions and 3 deletions

View File

@@ -1,11 +1,12 @@
const got = require('got');
const maxDownloadSize = 50*1024*1024;
class FileDownloader {
constructor() {
}
async load(url, callback) {
const maxDownloadSize = 10*1024*1024;
let errMes = '';
const response = await got(url, {method: 'HEAD'});