上传文件时的异常
Surile opened this issue · comments
@UseInterceptors(
FileInterceptor('file',{
limits: {
fieldSize: 10,
},
}),
)
async searchImage(@UploadedFile() file, @Body() params) {
const data = file.buffer.toString('base64');
return await this.imageService.imageClassfiy(params.token, data);
}
nestjs上传文件的大小是1m,设置之后报Field value too long,这种情况如何解决。