Commit 2ed170dd authored by nanahira's avatar nanahira

fix

parent 2d872c4d
Pipeline #5438 passed with stages
in 5 minutes and 40 seconds
...@@ -71,10 +71,10 @@ export class AppService extends ConsoleLogger { ...@@ -71,10 +71,10 @@ export class AppService extends ConsoleLogger {
this.http.post<ReturnMessage<string>>(`${this.jsdUrl}/upload`, form, { this.http.post<ReturnMessage<string>>(`${this.jsdUrl}/upload`, form, {
responseType: 'json', responseType: 'json',
headers: form.getHeaders(), headers: form.getHeaders(),
maxBodyLength: 100 * 1024 ** 3, maxBodyLength: Infinity,
}), }),
); );
return new ReturnMessageDto(201, 'success', data.data).toException(); return new ReturnMessageDto(201, 'success', data.data);
} catch (e) { } catch (e) {
this.error(`Failed uploading ${urlDto.url}: ${e.toString()} ${e.data}`); this.error(`Failed uploading ${urlDto.url}: ${e.toString()} ${e.data}`);
throw new BlankReturnMessageDto(500, 'upload fail').toException(); throw new BlankReturnMessageDto(500, 'upload fail').toException();
......
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