Copied to clipboard

Flag this post as spam?

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


  • Allan49 35 posts 55 karma points
    Nov 01, 2011 @ 19:12
    Allan49
    0

    Umbraco puts media files in folders with number format. It makes inelegant media URLs

    Hi,

    I am new to Umbraco and I uploaded a few images to the Umbraco’s media.

    The problem is that Umbraco uploads media files in folders with number format. It becomes difficult to guess the URLs and URLs become inelegant.

    Is there any way to define the name of media folders that image files will reside?

    Thank you,

  • Rodion Novoselov 694 posts 859 karma points
    Nov 02, 2011 @ 09:21
    Rodion Novoselov
    0

    Hi. Normally you don't need to somehow directly use URLs of media files (since they're supposed to be autogenerated). Rather that you should get an URL to a media file from its ID with library.GetMedia(...) and similar methods. If you need some static images e.g. to use in your CSS/layout etc then you'd better put them in a separate folder under fixed names you like and use them directly by their urls. 

Please Sign in or register to post replies

Write your reply to:

Draft