ConnectApi.ContentAttachment

Attachments in feed items with the type ContentPost.

This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.ContentCapability is used.

Subclass of ConnectApi.FeedItemAttachment.

NameTypeDescriptionAvailable Version
checkSumStringMD5 checksum for the file.28.0–31.0
contentUrlStringURL for link files and Google Docs; otherwise the value is null.31.0–31.0
descriptionStringDescription of the attachment.28.0–31.0
downloadUrlStringFile’s URL. This value is null if the content is a link or a Google Doc.28.0–31.0
fileExtensionStringFile’s extension.28.0–31.0
fileSizeStringSize of the file in bytes. If size cannot be determined, returns unknown.28.0–31.0
fileTypeStringType of file.28.0–31.0
hasImagePreviewBooleantrue if the file has a preview image available, otherwise ,false.28.0–29.0
hasPdfPreviewBooleantrue if the file has a PDF preview available, otherwise, false.28.0–31.0
idStringContent’s 18-character ID.28.0–31.0
isInMyFileSyncBooleantrue if the file is synced with Salesforce Files Sync; false otherwise.28.0–31.0
mimeTypeStringFile’s MIME type.28.0–31.0
renditionUrlStringURL to the file’s rendition resource.28.0–31.0
renditionUrl​240By180StringURL to the 240 x 180 rendition resource for the file.For shared files, renditions process asynchronously after upload. For private files, renditions process when the first file preview is requested, and aren’t available immediately after the file is uploaded.30.0–31.0
renditionUrl​720By480StringURL to the 720 x 480 rendition resource for the file.For shared files, renditions process asynchronously after upload. For private files, renditions process when the first file preview is requested, and aren’t available immediately after the file is uploaded.30.0–31.0
textPreviewStringText preview of the file if available; null otherwise.30.0–31.0
thumb​120By90​RenditionStatusStringSpecifies the rendering status of the 120 x 90 preview image of the file. One of these values:
  • Processing—Image is being rendered.
  • Failed—Rendering process failed.
  • Success—Rendering process was successful.
  • Na—Rendering is not available for this image.
30.0–31.0
thumb​240By180​RenditionStatusStringSpecifies the rendering status of the 240 x 180 preview image of the file. One of these values:
  • Processing—Image is being rendered.
  • Failed—Rendering process failed.
  • Success—Rendering process was successful.
  • Na—Rendering is not available for this image.
30.0–31.0
thumb​720By480​RenditionStatusStringSpecifies the rendering status of the 720 x 480 preview image of the file. One of these values:
  • Processing—Image is being rendered.
  • Failed—Rendering process failed.
  • Success—Rendering process was successful.
  • Na—Rendering is not available for this image.
30.0–31.0
titleStringTitle of the file.28.0–31.0
versionIdString18-character ID for this version of the content.28.0–31.0