Is it possible to set the URL segment on a media file? I can't find a property for it.
When in forms/all-properties mode when editing a media file, you should be able to set the URLSegment via the "Name in URL" field. Although I suspect you may have additional layers to this question :).
I meant programatically, not from the interface, sorry. From the API.
I believe the property is contentLink - http://world.episerver.com/documentation/Class-library/?documentId=cms/7.5/6B7F362
Basing this on a few examples:
If you cast your MediaData object to IContent you can access the UrlSegment property.
There does not seem to be a UrlSegment property on IContent.
I'm on my phone now. But there might be an IRoutable interface then.
Yep, that was it, thanks.