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
This code splits the files in chunks but stores all the chunks in an array, which is ultimately present in the memory.
Hence, when dealing with larger file size, this code may crash.
I would suggest, to read to file in chunks rather than storing chunks of whole file in array.
The text was updated successfully, but these errors were encountered:
Large File Upload Fails
Describe the bug
File upload of larger file size, say >2GB, fails after sometime.
To Reproduce
Steps to reproduce the behavior:
Try to upload a file of size >2GB, upload process starts but crashes after some time.
Expected behavior
File should be uploaded successfully.
Additional context
IMHO, the file should be uploaded in chunks.
cockpit-navigator/navigator/components/FileUpload.js
Lines 115 to 126 in cf7910c
This code splits the files in chunks but stores all the chunks in an array, which is ultimately present in the memory.
Hence, when dealing with larger file size, this code may crash.
I would suggest, to read to file in chunks rather than storing chunks of whole file in array.
The text was updated successfully, but these errors were encountered: