- Properties
- Data
- GetClientDownloadUrl
- HasErrors
- HasWarnings
- HasWarningsOrErrors
- SaveToTemporaryFiles
- ThrowErrors
Properties
Name | Access | Type | Description |
---|---|---|---|
ContentType | Read, Write | String | Content Type |
Date | Read, Write | Nullable of DateTime | Date |
Errors | Read | IList of Error | Errors |
FileName | Read, Write | String | File Name |
FileSize | Read, Write | Nullable of Int32 | File Size |
FileUrl | Read, Write | String | File Url |
IsRemoteAttachment | Read, Write | Nullable of Boolean | Is Remote Attachment |
Warnings | Read | IList of Warning | Warnings |
Methods
Data
Velocity
#set($byteResponse = $mediaFile.Data())
JavaScript
var byteResponse = mediaFile.Data();
Returns
Array of Byte
GetClientDownloadUrl
Velocity
#set($stringResponse = $mediaFile.GetClientDownloadUrl())
JavaScript
var stringResponse = mediaFile.GetClientDownloadUrl();
Returns
String
HasErrors
Velocity
#set($booleanResponse = $mediaFile.HasErrors())
JavaScript
var booleanResponse = mediaFile.HasErrors();
Returns
Boolean
HasWarnings
Velocity
#set($booleanResponse = $mediaFile.HasWarnings())
JavaScript
var booleanResponse = mediaFile.HasWarnings();
Returns
Boolean
HasWarningsOrErrors
Velocity
#set($booleanResponse = $mediaFile.HasWarningsOrErrors())
JavaScript
var booleanResponse = mediaFile.HasWarningsOrErrors();
Returns
Boolean
SaveToTemporaryFiles
Velocity
#set($booleanResponse = $mediaFile.SaveToTemporaryFiles($contextId, $fileName))
JavaScript
var booleanResponse = mediaFile.SaveToTemporaryFiles(contextId, fileName);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contextId | String | Context Id | Required | ||
fileName | String | File Name | Required |
Returns
Boolean
ThrowErrors
Velocity
$mediaFile.ThrowErrors()
JavaScript
mediaFile.ThrowErrors();