I am trying to upload the file using API request but I am getting below error message using Rest API
Could you please help us to fix the issue
Невозможно сериализовать, потому что не удается определить, как сериализовать приложение типа содержимого / x- www-form-urlencoded "
REST API code to upload the file using POST request
**code snippet**
given()
.header("Content-Type","application/x-www-form-urlencoded")
.header("Accept","application/json")
.formParam("batchfile", new File("A.pdf"))
.formParam("allowDuplicates","False").relaxedHTTPSValidation()
.auth()
.oauth2(acessToken)
.post("url").then().log().all();