From c6e716344c81e4282afbc7fc4ab55123151010cf Mon Sep 17 00:00:00 2001 From: PJ Date: Thu, 9 Jan 2020 13:19:15 +0100 Subject: [PATCH] Add maxContentLength to axios request config --- packages/siaviewnode-server/src/main.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/siaviewnode-server/src/main.ts b/packages/siaviewnode-server/src/main.ts index 387bfbf3..b2dd7b9a 100644 --- a/packages/siaviewnode-server/src/main.ts +++ b/packages/siaviewnode-server/src/main.ts @@ -1,10 +1,10 @@ -import * as express from "express" -import * as shortid from "shortid" -import * as fileUpload from "express-fileupload" -import * as R from "ramda" -import * as cors from "cors" -import * as proxy from "express-http-proxy" import axios from "axios" +import * as cors from "cors" +import * as express from "express" +import * as fileUpload from "express-fileupload" +import * as proxy from "express-http-proxy" +import * as R from "ramda" +import * as shortid from "shortid" const SIAD_ENDPOINT = "http://localhost:9980" @@ -103,6 +103,7 @@ export class Server { `/renter/linkfile/linkfiles/${uid}`, fileToUpload.data, { + maxContentLength: 1000 * 1024 * 1024, params: { name: filename }