I have project .net core serverless Application
public APIGatewayProxyResponse UploadFile(APIGatewayProxyRequest request, ILambdaContext context)
{
FileModel model = JsonConvert.DeserializeObject<FileModel>(request.Body);
return new APIGatewayProxyResponse
{
StatusCode = (int)HttpStatusCode.OK,
Body = JsonConvert.SerializeObject(new Dictionary<string, string>
{
{ "Code",$"{model.filename}"},
{ "Description",$"File Recieved"}
})
};
}
I have the Lambda function which should receive file using ApiGatewayProxyRequest I am sending file through postman using formdata to upload the file. I receive nothing inside lambda function How can I receive File using this approach? Thank you in advance