Hi Tim,
Yes I use the media library for organising pictures, excel-files and such. When the customer references the excel-file with a media picker it is stored in the SQL database. A little cumbersome solution, but I thought that was the most userfriendly.
Code:
int currentnode = int.Parse(System.Web.HttpContext.Current.Request.QueryString["id"]);
umbraco.presentation.nodeFactory.Node n = new umbraco.presentation.nodeFactory.Node(currentnode);
int mediaid = Convert.ToInt32(n.GetProperty("selectPricelist").Value);
umbraco.cms.businesslogic.media.Media m = new umbraco.cms.businesslogic.media.Media(mediaid);
string pathtoMedia = (string)m.getProperty("umbracoFile").Value;
If I delete a node in the media library, it doesn't seem like the cache is updated, because if I pick a new node and publish the page, Umbraco points me to the old deleted node
so I somehow think I need to force an update to get things working or something, maybe you can point me in the right direction
Thanks
Simon :)