Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

MediaFile

MediaFile('FileInfo.Type' property set to "Media") derived from the 'StoredFile' structure, and is used to reference uploaded files visible in the BSN Content Library by ID. See the example below (your values will vary for all but "type"):

Code Block
{
   "type": "Media", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "Odessa Rain.jpg", // [string]
   "size": 226675, // [uint]
   "hash": "SHA1:4B55491958FC06E904D78BF2C965B47629FC5D16", // [string]
   "creationDate": "2017-05-22T16:20:26.430Z", // [DateTime]
   "lastModifiedDate": "2016-09-20T09:39:42.253Z", // [DateTime]
   "id": 64947, // [int]
   "mediaType": "Image", // one of { "Text", "Image", "Video", "Audio" } enumeration values
   "path": "http://localhost:8081/Content/Images/782e4c7d-f5a1-4b21-bd76-3706fff20063.jpg" // [URI]
}