Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rob Holmes 16 posts 36 karma points
    Feb 08, 2011 @ 10:46
    Rob Holmes
    0

    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

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Feb 08, 2011 @ 12:21
    Dirk De Grave
    1

    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

  • Rob Holmes 16 posts 36 karma points
    Feb 08, 2011 @ 12:27
    Rob Holmes
    0

    Thanks Dirk, thats exactly what I wanted to know :-)

    Cheers,

    Rob

  • Rob Watkins 369 posts 701 karma points
    Mar 03, 2011 @ 13:50
    Rob Watkins
    0

    How do I get at that from the API for a Media object, as it is not the Id?

  • Rob Watkins 369 posts 701 karma points
    Mar 03, 2011 @ 14:14
Please Sign in or register to post replies

Write your reply to:

Draft