Copied to clipboard

Flag this post as spam?

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


  • Evan 40 posts 59 karma points
    Dec 02, 2010 @ 04:02
    Evan
    0

    Moving the media folder

    Hi,

    I want to move the media folder to a different location, so that when I deploy it's not in the way, and there's no way it can get accidentally "trashed".

    Anyone know the best way to do this?

    Thanks!

    -Evan

  • Chris Koiak 700 posts 2626 karma points
    Dec 02, 2010 @ 10:49
    Chris Koiak
    0

    Usually I will backup/move the live media folder before a deploy. Then you can just copy the files back in to the media folder once the deploy is complete.

  • Evan 40 posts 59 karma points
    Dec 02, 2010 @ 13:56
    Evan
    0

    Ah yeah, I think a more fool proof way is to point the media folder to a different root directory.

    This would also be good, because then we could share a media folder across DEV and CI environments (who share the same DB).

    Do you know if there's anyway to do this? Or does anyone?

  • Evan 40 posts 59 karma points
    Dec 02, 2010 @ 13:59
    Evan
    0

    How rude of me - I forgot to say thanks for the info Chris :)

  • Chris Koiak 700 posts 2626 karma points
    Dec 02, 2010 @ 14:03
    Chris Koiak
    0

    I don't know anyway to set this up in Umbraco, but you could look at syncing the folders using one of the following:

    - http://foldershare.com/
    - http://www.microsoft.com/downloads/en/details.aspx?familyid=C26EFA36-98E0-4EE9-A7C5-98D0592D8C52&displaylang=en
    - http://www.dropbox.com/

    Cheers,

    Chris

  • Evan 40 posts 59 karma points
    Dec 03, 2010 @ 01:02
    Evan
    0

    Ah cheers Chris. That' s a good idea.

    Thanks a lot, I'll check out those apps.

  • Chris White 23 posts 43 karma points
    Jan 25, 2011 @ 11:51
    Chris White
    0

    Hi,

    Did anyone found a way to relocate the media folder in Umbraco as this is something I'd like to do too. With other CMS products this can usually be specified in the configuration, but I can't find anything in Umbraco's config regarding this . . .

    Many thanks,

    Chris

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jan 25, 2011 @ 13:01
    Jeroen Breuer
    2

    There is an appsetting in which you can let your media point another folder. Read more about it here: http://our.umbraco.org/wiki/reference/webconfig/additional-umbraco-specific-appsettings.

    Jeroen

  • Chris White 23 posts 43 karma points
    Jan 25, 2011 @ 13:05
    Chris White
    0

    Brilliant - thanks Jeroen !! This is exactly what I was after.

    Why isn't this referenced in any of the documentation regarding load-balancing Umbraco as this gets around the problem of having to replicate the media folder between servers - just point each server at the same UNC share, or am I missing something . . .

  • mots 44 posts 75 karma points
    Jan 27, 2011 @ 13:18
    mots
    1

    Setting a different location for the media folder in the appsettings section of the web.config works perfectly.

    Another option would be to create a virtual folder called 'media' for your website in IIS, and then point it to the physical location of where your media folder is located on disk. The virtual folder wont interfere with any new code deployments or anything.

Please Sign in or register to post replies

Write your reply to:

Draft