Copied to clipboard

Flag this post as spam?

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


  • Shane 40 posts 193 karma points
    Dec 04, 2014 @ 12:49
    Shane
    0

    Using file upload in custom application

    I can't seem to find any documentation on using the file upload control in my custom application. Does anybody know of an example somwhere of how to upload a file and save it to the media section?

    Thanks

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Dec 04, 2014 @ 12:52
    Dennis Aaen
    0

    Hi Shane,

    I am not a backend developer but I think that you could use the MediaService. You can find the MediaService documentation here:http://our.umbraco.org/documentation/Reference/Management-v6/Services/MediaService

    Hope this can help you.

    /Dennis

  • Shane 40 posts 193 karma points
    Dec 04, 2014 @ 12:56
    Shane
    0

    Thanks Dennis, but not sure I would  do this with Angular.

    There is a file upload control available already so I would think (hope) I could re-use this and not have to rewrite it myself! The lack of documentation is a bit frustrating.

    Thanks

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Dec 04, 2014 @ 13:00
    Dennis Aaen
    0

    Hi Shane,

    Okay, maybe this AngularJs work book from Per from the Umbraco HQ can help you.https://github.com/umbraco/AngularWorkbook and maybe this can help you too http://umbraco.github.io/Belle/#/tutorials

    Hope this helps you further.

    /Dennis

  • Shane 40 posts 193 karma points
    Dec 04, 2014 @ 13:13
    Shane
    0

    Thanks but I don't see the point in reinventing the wheel. The functionality exists, I just need to know how to tie into it...

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Dec 04, 2014 @ 13:28
    Dennis Aaen
    2

    Hi Shane,

    In Umbraco 7, the propertyEditors is made with AngularJs, but if you navigate to your Umbraco installation. \Umbraco\Views\propertyeditors\fileupload, you will find the markup for the fileupload.

    And in the \Umbraco\Js\umbraco.controllers.js you will find the angular code for the fileupload property. It starts at line 4072.

    Hope this helps,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft