Iam having a csv file in fixture folder in cypress. I need to add that file as form data in POST request body Key data_file. I have given the code below.
method: 'POST',
url: 'https://someUrI',
headers: {
"apikey": "@44$bfdfbGD",
},
body:{
"date":"2022-02-02",
"data_file":*******filePath*******needs to add fixture file csv here as file
}
})
In Postman Iam sending as file not text
How to add as file in my code now
