Unable to POST pdf document using HTTP request

I am trying to post PDF document using HTTP request but unable to do that.

I am adding PDF document in attachment but looks like server is not able to recognize that document is PDF and giving following error message-

“Invalid file type, please upload a PDF file”

Do I need to add any kind of content-type in header?

Any help would be appreciated.

Thanks in advance.

@akshay616, try providing the entire path of the file instead of just the file name.