Received HTTP Status 400 – Bad Request?

Here my issue is iam not able to attach the csv file this error iam getting
{
“status”: “FAILED”,
“httpCode”: 400,
“message”: “file: Invalid File Extension/Content-Type Header”
}

Can any one help on this i tried in chat gpt while in postman its working fine in UiPath its not working.

Hi @naveen5

Can you please expand your message with more details on the issue
Giving some more details like what endpoint you are trying, what type of request and a few more details related to the issue

As of now I see from the error message is that the file extension is not allowed

Thanks,
Srini

@naveen5,

Attaching file with API POST request with HTTP Request is different from Postman.

Follow this post. Though it’s for PDF but, it’s similar for all types of attachments.

Thanks,
Ashok :slight_smile: