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:17
    Allan49
    0

    Umbraco Media doesnt show the files that are directly copied into ~media folder

    Hi,

    When I use FTP to upload files into the “~/media” folder, I can’t see them in the Admin->Media tab.

    Is there any way to make Umbraco’s media for ftp friendly?

    I know I can use MediaUploader, but I need to find a way to directly ftp media files and manage them in the Admin->Media tab or insert them in TinMCE rich text editor.

    Thank you,

  • tentonipete 78 posts 223 karma points
    Nov 01, 2011 @ 21:53
    tentonipete
    1

    You might have problems doing that because each file needs to have the a corresponding stub created in the database with details like title and location.

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Nov 01, 2011 @ 22:10
    Jan Skovgaard
    0

    Hi Allan

    As tentonipete points out you can't ftp the files into the media folder and then access them through Umbraco.

    Is there any particular reason why you need to use FTP instead of DMU to handle this?

    /Jan

  • Allan49 35 posts 55 karma points
    Nov 01, 2011 @ 23:48
    Allan49
    0

    Hi Jan,

    URL predictability is the main reason.

    DMU put Medias in random folder number. That becomes even more challenging when you need to have a url to a media in a template master pages.

    Do you know of any project that provides this feature?

    Thank you,

     

  • tentonipete 78 posts 223 karma points
    Nov 02, 2011 @ 00:08
    tentonipete
    1

    The numbers correspond to the nodeId which the media is assigned to hold the associated data mentioned above.

    If you are using images directly in a template master page i would suggest you store those images separately and have a folder somewhere within the webroot where you can control the path rather than using the media library. The media library is meant more for content purposes.

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Nov 02, 2011 @ 01:10
    Tom Fulton
    1

    Agreed - your media section should only store "content" images - images that can be picked by your content editors - you shouldn't need to know the path of these since you get them from your macros/templates/etc based on the picked media id.

    Any images used by your css, templates, etc, should be stored on disk outside the media section, such as in /images/ or /assets/

    -Tom

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies