Upload media in media reference property in object set using function backed action

Hi, so your object have a property with basetype as media reference, and also the media set is attached to this property in Capabilities section.

so in typescript function you just need to use parameter in example document: MediaItem to pass to your function and later just assign this document to media reference property
as
uploadMedia.uploadTestingMedia = document;
. And it works just in typescript v1. I was creating uuid as different property in the object.