function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rubin CenturyRubin Century 

lightning:fileUpload throwing error

I am trying to test the lightning:fileUpload, which is available in Beta for Winter 18 release. I have the following code for a test lightning app.


When I try to upload files, either by drag-drop or cliking upload button, I am gettting the following error:

       Sorry to interrupt
This page has an error. You might just need to refresh it.
Access Check Failed! AuraComponentService.createComponentFromConfig(): 'markup://forceContent:fileUploadAction' is not visible to 'markup://c:testApp {1:0}'.
Failing descriptor: {c:testApp}

<aura:application extends="force:slds" access="global">
    <lightning:fileUpload label="Attachment:" multiple="true" accept=".pdf, .png" recordId="a2Xd0000000KT9f" onuploadfinished="{!c.handleUploadFinished}"/>
</aura:application>

controller.js
({
    handleUploadFinished: function (cmp, event) {
        // Get the list of uploaded files
        var uploadedFiles = event.getParam("files");
        console.log("Files uploaded : " + uploadedFiles.length);
    }
})

Please help.