I'm currently have a quite robust controller that now needed to add request body by uploading a file inside its DTO
//then
{
Description: 'string',
Students: [
{
Name: 'string',
Age: number
}
]
}
//now
{
Description: 'string',
Students: [
{
Name: 'string',
Age: number
Image: Bytes
}
]
}
I need to input the image inside the DTO and I think changing those DTO intomultipart/form-data is a no-go since it will change major flow of the code. Is there a possible way to achieve this? Tried to solve the problem but stuck