What am I doing wrong?
@Post('upload')
@UseInterceptors(FileInterceptor('file'))
async upload( @UploadedFile() file) {
console.log(file)
}
file is undefined

Advertisement
Answer
The code works as expected in a fresh project. Hence, the dependencies are corrupt. Deleting the node_modules folder and running npm install solves the problem.