This example shows how to upload an image using angular-formly with the handy angular-base64-upload lib, a directive which takes file inputs and convert to an object with it's content in base64 format.
Also, the file input is completely whipped out and customized with bootstrap only using CSS, thanks to Cory LaViska and his awesome article.
The name of the file is later added with a single angular expression :-)
Easy peasy (it'll work when you select an image, trust me).
{{vm.model | json}}