Copied to clipboard

Flag this post as spam?

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


  • Santhosh 58 posts 99 karma points
    Nov 02, 2012 @ 14:24
    Santhosh
    0

    How does the media item stored physically?

    Hi,

    can some one explain how a new media item gets stored physically?

    Add a new media item (Image) to the media section, goto the image and look at the "Properties" tab, the id generated is "xxxx", but how this file is physically located in the "~/media/" folder?

    I dont see the "xxxx" folder created physically, but the file is available under some other folder name.

    Thanks 

    Santhosh

  • Per Ploug 865 posts 3491 karma points MVP admin
    Nov 02, 2012 @ 14:56
    Per Ploug
    0

    media files are located under their upload property's property Id so each file will be in /media/propertyId/file.ext  

     

  • Santhosh 58 posts 99 karma points
    Nov 05, 2012 @ 08:06
    Santhosh
    0

    Hi per,

    I don't see this happening, below is the image item (media item) I created,

     

    And below is the folder location,

     

    I see the property id being "4712" and the folder where the image file located is "500405". I also searched for test 4712 and 500405 in app_data/umbraco.config file, but I couldn't find it.

    Am i missing some steps while adding an image? I could use the image file (media item) but.

    Thanks

    Santhosh

  • Per Ploug 865 posts 3491 karma points MVP admin
    Nov 07, 2012 @ 13:51
    Per Ploug
    0

    4712 is not a property it, that is the actual media Its id.

    This is the structure:

    Media item (id 4712)
     - upload field (id: 500405)

    Media item gets its id from umbracoNode table and upload field property id, gets its id from cmsPropertyData table, which the upload field then uses to ensure the file is stored in a unique location.

     

Please Sign in or register to post replies

Write your reply to:

Draft