AddTorrentByFile: use base64 instead of Blob to transfer file

This commit is contained in:
Jesse Chan
2020-09-29 22:17:59 +08:00
parent b0bd3c1b6e
commit c6f8b9b76d
11 changed files with 127 additions and 208 deletions

View File

@@ -37,8 +37,8 @@ app.set('etag', false);
app.use(morgan('dev'));
app.use(passport.initialize());
app.use(compression());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json({limit: '50mb'}));
app.use(bodyParser.urlencoded({extended: false, limit: '50mb'}));
app.use(cookieParser());
passportConfig(passport);