Hopefully this should be a simple answer for someone who knows the umbraco Core quite well, but I've not been able to find an answer on the forum.
When uploading Media in Umbraco, you get a file location along the lines of:
/media/1036537/myImage.JPG
My question is how is the name of the sub folder generated? It does not appear to bear any relationship to the database (nodeID or similar) yet the folder names must be unique. Can anyone shed any light on this?
Question about media
Hi All,
Hopefully this should be a simple answer for someone who knows the umbraco Core quite well, but I've not been able to find an answer on the forum.
When uploading Media in Umbraco, you get a file location along the lines of:
/media/1036537/myImage.JPG
My question is how is the name of the sub folder generated? It does not appear to bear any relationship to the database (nodeID or similar) yet the folder names must be unique. Can anyone shed any light on this?
Thanks in advance,
Rob
that unique folder name (id) is based on an id in the cmsPropertyData table which saves all properties of a specific media (and in general a node).
Hope this helps.
Regards,
/Dirk
Thanks Dirk, thats exactly what I wanted to know :-)
Cheers,
Rob
How do I get at that from the API for a Media object, as it is not the Id?
Never mind, found a thread detailing it: http://our.umbraco.org/forum/developers/api-questions/16310-Create-new-media-using-API?p=1#comment67717
is working on a reply...