forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload: Implement InMemoryUrlStorage for tus-js-client.
Fixes zulip#31926. The tus-js-client fingerprinting feature stores metadata on previously uploaded files in browser local storage, to allow resuming the upload / avoiding a repeat upload in future browser sessions. This is not a feature we need across browser sessions. Since these local storage entries are never garbage-collected, they can be accessed via the browser console even after logging out, and contain some metadata about previously uploaded files, which seems like a security risk for using Zulip on a public computer. We use our own implementation of url storage that saves urls in memory instead. We won't be able to retain this history across reloads unlike local storage, which is a tradeoff we are willing to make.
- Loading branch information
1 parent
639b291
commit fe10b6f
Showing
1 changed file
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters