I'm trying to attach a file to an email in a custom class. I get the file reference from a media picker which I have as a MediaWithCrops
. It's actually a PDF. In debug I can inspect it down to the relative media path to the file but I can't actually get hold of it to put into the MediaFileManager to get it's full path to be able to attach it.
So, given a MediaWithCrops
, how do we get to it's property called "UmbracoFile" and it's "_sourceValue", where I can see the path staring at me!
Thanks.