Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Apr 06, 2012 @ 22:10
    Carlos
    0

    Media folder names

    Is there a way to pass in the actual name of a folder name from the Media section?

    For instance, I have some Javascript that I may need to pass in the the actual Folder name then get the images in there.  I see that images get put into "folders" but I see each image not matter if in the Media seciton get put into a media/uniqueNumberGivenByUmbraco/imageName.jpg  but the path does not necessarily reflect the Folder we put the images in the media section.  
    Such as /FolderWeNamedInMediaSection/imageName.jpg, /FolderWeNamedInMediaSection/imageName2.jpg,
     /FolderWeNamedInMediaSection/imageName3.jpg.

    On the server I see the /media/ folder URLs look like this media/uniqueNumberGivenByUmbraco/imageName.jpg.  But each image is put into a unique folder number.   Is there a way to have Umbraco make the URLs for all the images look like /FolderWeNamedInMediaSection/imageName.jpg?

     

    Thanks in advance.

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Apr 08, 2012 @ 08:59
    Jeroen Breuer
    0

    That probably won't be possible with the media section. The folder names in Umbraco and the folder names on the server are not related to each other and it will probably be pretty hard to to this. The folder is created in the upload datatype. It uses the property id to create a folder. Have a look here for the source: http://umbraco.codeplex.com/SourceControl/changeset/view/751c9aa11bbd#components%2feditorControls%2fuploadfield%2fuploadField.cs

    Maybe this topic can help: http://our.umbraco.org/forum/templating/templates-and-document-types/27927-Media-Upload-into-same-directory

    Jeroen

  • 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