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