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, 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.
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.
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
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
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
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
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...
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
is working on a reply...