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
Support large files - currenctly when I try to upload anything more than > 40 megs, my browser would hang with SIGILL . Is it possible to support files larger than 1GB?
Screenshots
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Did not see this one until now. So, that is a great question. Since the encryption is done by tweetnacl in the browser, it is using browser resources. I have to play around and test to see what is possible or not. Find the bottleneck.
sokoow
changed the title
[FEATURE] <description>
[FEATURE] support large files
Mar 1, 2023
It requires a lot of refactoring to make this work.
By default everything was base64 encoded (after the encryption to make it easy to post to the server), which works fine for normal text, but not large files
What has to be done is
use this API in the zip.js file: reader.readAsArrayBuffer(file); (place it next to new FileReader()
Remove encode base64 from zipFiles function
Update both encrypt and decrypt in the crypto.js file to not use base64encode or decode for files
It has to be handled differently by the upload, currently it is stringified form data added to a POST request in the api/secrets.js#createSecret() function
Handle streaming of large files to the server in a fine way
So, TL;DR: The current file handling is very bad, and to support large files, it requires a lot of work, but, should definitely be done at some point.
Description
Support large files - currenctly when I try to upload anything more than > 40 megs, my browser would hang with SIGILL . Is it possible to support files larger than 1GB?
Screenshots
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: