Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DOMException: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired

when i trying to read file using FileReader and the file size is 5.9gb and when this code run

var file = document.getElementById('uploadFileId').files[0];
   let reader = new FileReader();
   reader.onerror  = function() {
       console.log(reader.error);
   } 
   reader.onload = function(e) {
        console.log(" e.target.result ",e.target.result);
    }
    reader.readAsArrayBuffer(file);

then above error is generate in angularjs. here i want to achieve that multipart file want to divide in to 5mbs chunks and send to server.

like image 918
satish wanjari Avatar asked Aug 12 '20 12:08

satish wanjari


1 Answers

I'm getting the same message, but only for files over 2GB. Seems as though there is a file size limit that triggers this unhelpful message.

like image 189
Glenn Johnson Avatar answered Sep 18 '22 09:09

Glenn Johnson