You need to sign in to do that
Don't have an account?
Rubin 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.
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.