You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is pretty unrealistic, but I have a 600+MiB file and I get Uncaught SyntaxError: Unexpected end of JSON input because FileReader returns an empty string when the file is to big. I think one possible solution would be to read the file in chunks using File.slice.
I know this is pretty unrealistic, but I have a 600+MiB file and I get
Uncaught SyntaxError: Unexpected end of JSON input
because FileReader returns an empty string when the file is to big. I think one possible solution would be to read the file in chunks usingFile.slice
.additional links:
https://stackoverflow.com/questions/20706418/are-there-file-size-limitations-when-using-javascript-filereader-api
https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice
The text was updated successfully, but these errors were encountered: