Show navigation ≫
≪ Hide navigation

Use case

Renders a file.

Structure

Optional parameters are indicated as "(Optional)".

Parameter Meaning Notes
type (string) The type of body element.
  • Must be file
data (object)
  • url (string) = the url of the file.
  • name (string) (optional) = the name of the file.
  • type (string) (optional) = the mime type of the file.
  • size (integer) (optional) = the size of the the file, in bytes.
  • extension (string) (optional) = the extension of the file.
  • img (image_object) (optional) = the preview image of the file.
The data of the element.
  • size parameter can be used to estimate the time necessary to download the file.
  • This parameter requires a Connected Web Image Object. See the Object > Image documentation to understand more.
Continue to the Location Body Element definition

Example

{
	
    "type": "file",
    "data": {
			
        "url": "https://fbwcdn.com/image/assets/ConnectedWeb-Logo-IcoOnly-White.zip",
	"name": "Connected Web Logo - Ico only - White",
	"type": "application/zip",
	"size": 5024,
        "extension": "zip"
			
    }
		
}
Show navigation ≫
≪ Hide navigation