Commit f3d6eb3a authored by nanahira's avatar nanahira

fix max size

parent 2ed170dd
Pipeline #5440 passed with stages
in 3 minutes and 40 seconds
......@@ -71,7 +71,8 @@ export class AppService extends ConsoleLogger {
this.http.post<ReturnMessage<string>>(`${this.jsdUrl}/upload`, form, {
responseType: 'json',
headers: form.getHeaders(),
maxBodyLength: Infinity,
maxBodyLength: 4 * 1024 ** 3,
maxContentLength: 4 * 1024 ** 3,
}),
);
return new ReturnMessageDto(201, 'success', data.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment