I'm having problem posting binary data and regular data at the same time.
How I can test it with Insomnia? Insomnia offers only URL Encoded for data and Binary File for file. I cannot send both at the same time.
What should I do to test uploading data and binary file at the same time with one request?
To upload a video using Insomnia, you have to set the body as multipart and add the file and all the other necessary parameters. The upload[file] parameter needs to be changed to type 'File' using the small arrow at the right side of the row. The Multipart body should look similar to the sample image.
you could use multipart form from insomnia with this you could send data and file at the same request
Choose Multipart Form
Enter the name of the param (ex. image) and for the value, at the end you have a dropdown, choose File
BONUS:
If you want to upload multiple files, you just need to put the same name of the param.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With