In javascript it is very simple to create file object just like that :
var assetLocalPath="C:/Users/Pictures/flower..jpg";
var file = new File([""],assetLocalPath);
alert(file);
It will alert [object File]
Same as above I would like to create in AngularJS, but I am getting an error " TypeError: File constructor cannot be called in nwdisabled frame "
Please suggest.