Skip to content
Advertisement

Error in linkedin media upload api

I am trying to upload an image using linkedin api. I already uploaded image in my server and now I want to upload the upoaded image url to linkedin. But I got the error

{ “serviceErrorCode”:0,”message”:”The request is not a multipart request”,”status”:400 }

JavaScript

This is the request. Please anyone tell me What is the exact issue and how to sort this out.Thanks in advance.

Advertisement

Answer

Added header like this:

JavaScript

And changed the post params like this

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement