cypress.interept how to read req.body if the body is a form-data #14883
Unanswered
HiteshChoudhary0098
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am intercepting a request that sends a text file (plain/text) i want to read the content of the file but am not able to convert the data to string. on console log it print a ArrayBuffer.
the form data is suppose to be
// ```
// -----------------------------17054997497415852603364482265
// Content-Disposition: form-data; name="file"; filename="jokes.txt"
// Content-Type: text/plain
the console.log output and its type is object(don't know why)

Beta Was this translation helpful? Give feedback.
All reactions