Currently, I am developing a Protractor project with the TypeScript Cucumber framework. In this project, I am using the "typed-rest-client/HttpClient" package to fetch API responses.
I have encountered an issue where I am unable to post an HTML file in the request body using the http client. Although I can successfully post string data, uploading a file has proved difficult.
If anyone could provide guidance on how to accomplish this or recommend another package that handles file uploads easily, it would be greatly appreciated.