Added more robust Error handling and fallback to other Download options if FileSystemwritableFilestream does not work#2438
Conversation
…ns if FileSystemwritableFilestream does not work.
|
It may be that an inline fallback is needed here to work nicely. It may not be easy or robust to be able to check if you have the "file editing" permission from javascript. If I force file editing off in Chrome (Settings, Privacy, Permissions, File Editing) and then change this function in So another option would be to allow an admin to force this to off if their browser policy is to disallow it. That is assuming that the permission can not be reliably tested for in JS. |
|
An alternate I have been testing is waiting to get to Though the alternate I have might be more kludgey than moving to the await calls up front as in this PR. Good to explore options though. :) A real shame there doesn't seem to be a sync API to ask "do I have permission to call |
|
Thank you for making the pull request! |
|
As there are a number of changes already in |
|
Thank you for the thorough review and for considering this PR in the next releases plan. |
|
release 2.60 (and release 2.61 due to release process) are now out. 2.61 on the 16th. If things remain quiet on the 2.61 front I will look at merging this in the next week or two. |
monkeyiq
left a comment
There was a problem hiding this comment.
I can probably revert the two above changes. I've been testing this out a bit more today.
www/js/crypter/crypto_app.js
Outdated
| window.filesender.log("downloadAndDecryptChunk(progress) chunkid " + chunkid | ||
| + " loaded " + evt.loaded + " of total " + evt.total ); | ||
| if (evt.lengthComputable || evt.loaded) { | ||
| if (evt.lengthComputable) { |
There was a problem hiding this comment.
I don't think we want to revert this change #2324
| password_hash_iterations: encryption_details.password_hash_iterations, | ||
| client_entropy: encryption_details.client_entropy, | ||
| }; | ||
| var keydesc = JSON.stringify(pbkdf2details); |
There was a problem hiding this comment.
We want to use pbkdf2details here to avoid having to make the key again for different files in the same transfer.
|
I see a regression on Safari. Downloading an encrypted file goes from showing the EDIT: Actually no. I had a branch without the |
|
This is in 2.62. Thanks again for investigating things and making this PR! |
Proof-of-concept implementation for #2420