Copied to clipboard

Flag this post as spam?

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


  • Dave 16 posts 36 karma points
    Aug 11, 2010 @ 22:14
    Dave
    0

    Is there a File Picker (file system)?

    Clearly there have been a number of posts related to "File Pickers" as data-types.

    What I need to allow is the user to browse a folder of files, select the file, which saves the path as a string for use later in a macro.

    We can not use the Media picker because there are hundreds of large video files that will be dropped into a folder on the file system, uploading the files is impractical.

    So the question is;  Has anyone created a file picker that can be configured to browse a specified folder as the root directory, and when selected returns the path?

     

     

     

  • wolulcmit 357 posts 693 karma points
    Aug 11, 2010 @ 23:00
    wolulcmit
    0

    does the file manager package do what you're after?

    http://our.umbraco.org/projects/backoffice-extensions/file-manager

    file importer might also be what you're after, as it allows you to import files that have already been uploaded directly to the server into the media section for consumption.  http://our.umbraco.org/projects/backoffice-extensions/import-media

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Aug 12, 2010 @ 00:38
    Lee Kelleher
    1

    Hi Dave,

    Yes, (of sorts).  I needed one for a previous client project, couldn't find one - so wrote it myself.  I posted the source-code in this forum post:

    http://our.umbraco.org/forum/developers/extending-umbraco/9021-Does-a-File-Picker-data-type-exist

    I will be including this data-type in the upcoming uComponents package.  In the meantime, you can copy-n-paste the code-snippet (from the link above) into a C# file and drop it into your App_Code folder.  Umbraco should pick it up as a data-type.

    Cheers, Lee.

  • Dave 16 posts 36 karma points
    Aug 12, 2010 @ 15:45
    Dave
    0

    Hi Lee,

    Is there anything else I need to do to get Umbraco to pick it up?  It doesn't appear as an option after I drop the file in the App_Code folder in the root of the site.

    Thanks!

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Aug 12, 2010 @ 16:08
    Lee Kelleher
    0

    Hi Dave,

    Strange... I've just tried this myself and I get the same problem! It doesn't seem to load data-types from the App_Code - not sure why that is, I thought that's where I tested it previously?!

    Anyway, I've compiled the C# class for you into a DLL.  Download it from the link below, and drop it into your /bin folder.

    http://code.leekelleher.com/umbraco/Our.Umbraco.DataType.FilePicker.dll.zip

    I am working on an improved version for uComponents - where you can select the initial path and select multiple files ... but that is still in development, few months away yet!

    Cheers, Lee.

  • Dave 16 posts 36 karma points
    Aug 12, 2010 @ 16:24
    Dave
    0

    Lee,

    This is an excellent start.  While it may not work exactly as I need it today, it's clear the direction that your taking, and I appreciate your help.

    Regards,

    Dave

     

Please Sign in or register to post replies

Write your reply to:

Draft