Add maxContentLength to axios request config

This commit is contained in:
PJ 2020-01-09 13:19:15 +01:00
parent bdd4fdd75e
commit c6e716344c
1 changed files with 7 additions and 6 deletions

View File

@ -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 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" const SIAD_ENDPOINT = "http://localhost:9980"
@ -103,6 +103,7 @@ export class Server {
`/renter/linkfile/linkfiles/${uid}`, `/renter/linkfile/linkfiles/${uid}`,
fileToUpload.data, fileToUpload.data,
{ {
maxContentLength: 1000 * 1024 * 1024,
params: { params: {
name: filename name: filename
} }