Copied to clipboard

Flag this post as spam?

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


  • Marc Love (uSkinned.net) 349 posts 946 karma points
    May 18, 2010 @ 18:17
    Marc Love (uSkinned.net)
    0

    Custom section with file upload - Add files to media library

    Hi,

    I have created a custom section in umbraco that uses a standard asp.net fileupload control to upload document files. These document files are uploaded to a folder I have created at the root level of my umbraco website. Does anyone know how I can add these files to the default media section of umbraco so that these files can be available via the media picker data type.

    Thanks,

    Marc

  • Stefan Kip 1606 posts 4098 karma points c-trib
    May 18, 2010 @ 19:56
    Stefan Kip
    0

    I don't think that's possible (the media section is build like it is and is expecting a folder/file structure like you can see in the 'media' folder).

    You could take a look in the source code of Umbraco to see if it's possible.

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    May 18, 2010 @ 20:26
    Dirk De Grave
    0

    How about creating a media item programmatically once you've handled the upload and set the source of the file to the path you've used to store the file (not entirely sure if that would work tho)?

     

    Cheers,

    /Dirk

  • 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