HTTP POST request returns error "Invalid file data"

Hi,

I am using DEEPL APIs. I want to upload a word document(.docx) on Deepl for translation. The API documentation for Deepl can be find here DeepL API

The problem is: according to documentation, I should receive the following output which I successully got on Postman.

But I am getting response: “Invalid file data” with status code 400.
The settings for HTTP request are following:




Any idea?

Problem solved. I removed the Content-Type header and now its working.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.