PayloadTooLargeError when creating a post
PayloadTooLargeError when creating a post
You inlined image data instead of uploading first. Upload through
/public/v1/upload or
/public/v1/upload-from-url, then pass the returned id and path in the post body’s image
array.The file type was refused
The file type was refused
/public/v1/upload checks the file’s detected MIME type against this list:/public/v1/upload-from-url applies the same list to the bytes it downloads, but checks the URL
first: the path, ignoring any query string, must end in .png, .jpg, .jpeg, .gif, .webp
or .mp4.So AVIF, BMP and TIFF cannot be fetched from a URL at all, only sent through the multipart
endpoint. A 400 naming extensions rather than MIME types is how you tell the two checks apart.PDFs are not accepted. The only PDF flow is LinkedIn document carousels, produced internally by
converting an image carousel.File size exceeds the maximum allowed size
File size exceeds the maximum allowed size
Per-file caps, on both endpoints:
upload-from-url times out, or fetch failed
upload-from-url times out, or fetch failed
The backend proxies the source URL, so it fails when the source is slow, unreachable, blocks the
user agent, or sits behind authentication.
- The source must be publicly reachable HTTPS with no auth
- Not private S3 URLs, expired signed URLs, or intranet hosts
- Consistently slow source? Download it and use the multipart
/uploadendpoint
Failed to load video metadata
Failed to load video metadata
She inspects duration, dimensions and codec before handing the file to the network, and files
outside the supported range fail here.
Other formats may upload and then be rejected by the network downstream.
Uploader plugin does not allow removing files during an upload
Uploader plugin does not allow removing files during an upload
You pressed Cancel on a file already in flight, and the uploader does not support that. Wait for
it to finish, then delete the asset from the post.A known limitation, tracked in Known Issues.
Next steps
Uploads and storage
Where files are kept, and how they are served to the networks
Upload over the API
The endpoint, its fields and its responses
Media and design
The library, the design editor and AI generation
Still stuck?
What to put in a report so the first reply is the useful one