Pricing Blog

Uploading Image on LinkedIn

  • uunicode-1388122286321569852

    unicodes

    1 month ago

    I'm on the step of uploading an image to linkedin.

    Step 1 - InitializeUpload (POST)
    Step 2 - Upload the image (PUT)

    I get 201 from step 2, but when I check for the image I get "PROCESSING_FAILED".

    Do you know what else needs the Upload image on LinkedIn?

    Is a PUT - URL (uploadURL from Step - 1)
    Header Content-Type: image/jpeg (as per image)
    media-type-family: STILLIMAGE
    Content-Lengh: 3199852
    Authorization Bearer {access_token} (the one received connecting to linkedin)

    Tried Also - Authorization: Bearer Redacted' "https://www.linkedin.com/dms-uploads/..." (as per doc) but doesn't work.

    Have you been in this issue ever?
    How did you fixed it?
  • whitep4nth3r-1388154528645255248

    salma

    1 month ago

    yeah "Redacted" won't work as the token, that's just on the sample docs to show that you don't want to publish your auth token

    (looking at these docs and trying to work out what might be the issue: https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/vector-asset-api?view=li-lms-2025-06&tabs=http#upload-the-image)

    on the page I linked there, in the curl example, they're not using the media-type-family or content-length headers, that's the only thing I noticed
  • uunicode-1388168348017229997

    unicodes

    1 month ago

    Hi Salma, I'm giving the right Access Token but Isn't working.
    1388168347585220608-Screenshot_2025-06-27_at_17.44.59.png
  • whitep4nth3r-1388168591802896494

    salma

    1 month ago

    what's in the response object? Looks like error is null so it has worked?
  • uunicode-1388168752188887100

    unicodes

    1 month ago

    It is 201 created, but isn't true. Linkedin APIs doesn't return something for PUT.
  • whitep4nth3r-1388168907755618446

    salma

    1 month ago

    if the server returns 201 then surely it has been created?
  • how are you checking for the image/requesting it again?
  • uunicode-1388169121103089886

    unicodes

    1 month ago

    Yes, the status in network si 201 created
  • whitep4nth3r-1388169174689382400

    salma

    1 month ago

    the docs aren't good and don't tell you how to get it again, surely the API should return the URL that you can access it on.
  • uunicode-1388169365278687354

    unicodes

    1 month ago

    First I download the immage in a blob, then processing it into binary in a variable. Then asking for the upload, checking the upload and it say "Waiting" but in the PUT fails.
  • whitep4nth3r-1388169501551362048

    salma

    1 month ago

    what's the in response of the last API call you make? it wasn't expanded
  • uunicode-1388169589216776402

    unicodes

    1 month ago

    from API 3.1?
  • or 3?
  • whitep4nth3r-1388169702735482890

    salma

    1 month ago

    3
  • uunicode-1388169823154077767

    unicodes

    1 month ago

    There is no response. Just the status in network wich is 201 Created.
  • I'm supposing is the image, because everything else I checked many times and should be as per doc.
  • And also step 2 (the request) is working correct.
  • As per 3.1 (api name) Linkedin is waiting for my image.
  • whitep4nth3r-1388170378266021908

    salma

    1 month ago

    which docs are you using exactly?
  • whitep4nth3r-1388170534721949786

    salma

    1 month ago

    at the top of that page it says that this API has been sunset
  • I think?
  • or maybe that's a warning for somethting else
  • these are bad docs 😅
  • uunicode-1388170775072346132

    unicodes

    1 month ago

    the version 202406 was sunset, but there is 202506
  • whitep4nth3r-1388170856378929264

    salma

    1 month ago

    have you tried GETting the single image after upload or it is that the id you need to pass into the GET API isn't returned anyway?
  • uunicode-1388170869225947220

    unicodes

    1 month ago

    1388170868961579168-Screenshot_2025-06-27_at_17.55.21.png
  • uunicode-1388171072142053387

    unicodes

    1 month ago

    This is what does 3.1
  • whitep4nth3r-1388171169932513423

    salma

    1 month ago

    you might have to ask for support from the people that actually make this API 😅
  • uunicode-1388171243748069396

    unicodes

    1 month ago

    I check after asking with 3.1 if everything is ok, and it returns waiting, but after put it returns error
  • Tried to join a discord for LinkedIn but there isn't one. 😦
  • Do you know a better way to transform a blob to binary?
  • I tried to Encode Base64 from the blob, then I tried with customAction, but nothing.
  • whitep4nth3r-1388171734406135990

    salma

    1 month ago

  • uunicode-1388171741188198420

    unicodes

    1 month ago

    I'm doing wrong maybe transformin in binary the blob.
  • uunicode-1388171951700447233

    unicodes

    1 month ago

    Then my function is correct.
  • uunicode-1388178484685439068

    unicodes

    1 month ago

    I appreciate your help Salma!
  • whitep4nth3r-1388178904564633641

    salma

    1 month ago

    Sorry I couldn’t help more!