API endpoint /file produces attachment.bin files in project folder

Yes i have tried to pass Content-Type: application/json or xml as header and parameterer. But no matter what i do UiPath passes the default Content-Type as application/octet-stream.

I have tried everything from this forum post: