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
ravindra singh 17ravindra singh 17 

Edge browser issue in drag drop functionality. It is failling only one scenario which is given below.

Edge browser issue in drag drop functionality.
It is failling only one scenario which is given below.

FileReaderOnload function is giving "SecurityError" exception in edge browser. This we are getting only when we trying to read files before inserting the attachment from hidden lightning component. 

 
var objFileReader = new FileReader();
// set onload function of FileReader object   
objFileReader.addEventListener("load",function(loadevent){
var fileContents = loadevent.target.result;
var base64 = 'base64,';
var dataStart = fileContents.indexOf(base64) + base64.length;
fileContents = fileContents.substring(dataStart);
// call the uploadProcess method 
self.uploadProcess(component,event,helper,file, fileContents, accountId,TypeOfFile);
                });
objFileReader.onerror = function (e) {
console.log('objFileReader error::::',e.target.error);
};
objFileReader.readAsDataURL(file);