I had created a lightning component to upload multiple files with the help of this URL how to create upload multiple file url
which is working fine in action button but when I try to call that component in my VF page having the issue of Lightning out App error in callback function
To use the lightning component in VF page I follow this URL:- how to call component in VF page
and here is my vf page code:-
<apex:includeLightning />
<div id="fileMultiContainer" />
<script>
$Lightning.use("c:UploadFileApplication", function() {
$Lightning.createComponent("c:UploadFile",
{},
"fileMultiContainer",
function(cmp) {
component.set("v.recordId",'{!order.Id}');
});
});
</script>
Can someone please help me where I did wrong.