ConnectApi.Content

A file attached to a feed item.

Property NameTypeDescriptionAvailable Version
checksumStringMD5 checksum for the file.36.0
contentUrlStringURL of the content for links.36.0
descriptionStringDescription of the attachment.36.0
downloadUrlStringURL to the content.36.0
fileExtensionStringExtension of the file.36.0
fileSizeStringSize of the file in bytes. If size can’t be determined, returns unknown.36.0
fileTypeStringType of file, such as PDF.36.0
hasPdfPreviewBooleantrue if the file has a PDF preview available; false otherwise.36.0
idString18-character ID of the content.36.0
imageDetailsConnectApi.ContentImageFileDetailsImage details, or null if the file isn’t an image.40.0
isInMyFileSyncBooleantrue if the file is synced with Salesforce Files Sync.
Note: Salesforce Files Sync was retired on May 25, 2018.
36.0
mimeTypeStringMIME type of the file.36.0
renditionUrlStringURL to the 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.36.0
renditionUrl​240By180StringURL to the 240 x 180 pixel 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.36.0
renditionUrl​720By480StringURL to the 720 x 480 pixel 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.36.0
sharingOptionConnectApi.​FileSharingOptionSharing option of the file. Values are:
  • Allowed—Resharing of the file is allowed.
  • Restricted—Resharing of the file is restricted.
36.0
textPreviewStringText preview of the file if available; null otherwise.36.0
thumb120By90​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.
36.0
thumb240By180​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.
36.0
thumb720By480​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.
36.0
titleStringTitle of the file.36.0
versionIdStringVersion ID of the file.36.0

See Also