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
Question
I have storeFingerprintForResuming turned off and was assuming localStorage will no longer be used if so, and it seems like the case as I don't see any entries in devtools.
However, I'm seeing QuotaExceededError from some users: tus: failed to upload chunk at offset 0, caused by QuotaExceededError: The quota has been exceeded., originated from request (method: PATCH...
I peeked at the code and don't think it is being used when storeFingerprintForResuming is turned off, but I'm not 100% sure. There is an initial test to see if localStorage is usable, but that's covered by a try-catch and is not part of the upload, so should be unrelated.
Does the tus-js-client need localStorage regardless, and if not, what else do I need to set to disable the use?
The text was updated successfully, but these errors were encountered:
Are you using the findPreviousUpoads method? If so, that will also access localStorage, so please remove these calls.
If you want to be completely sure that localStorage is never accessed, you can pass an instance of NoopUrlStorage to the urlStorage option for the tus.Upload constructor:
* Move into getLocalStorageSummary + always log
- Move into getLocalStorageSummary to clean up the clutter.
- Always log the localStorage info to get a bigger picture of what's going on with the QuotaExceededError.
* Remove 'findPreviousUploads' - we use the url stored in Redux.
Something I forgot to remove in the past. It also reads from localStorage, so remove since we are trying to avoid touching localStorage.
* Ensure localStorage is not used when uploading
I don't think it's being written when `storeFingerprintForResuming` is disabled, but doing the suggestion nonetheless.
`https://github.com/tus/tus-js-client/issues/315#issuecomment-1046821112`
Question
I have
storeFingerprintForResuming
turned off and was assuminglocalStorage
will no longer be used if so, and it seems like the case as I don't see any entries in devtools.However, I'm seeing
QuotaExceededError
from some users:tus: failed to upload chunk at offset 0, caused by QuotaExceededError: The quota has been exceeded., originated from request (method: PATCH...
I peeked at the code and don't think it is being used when
storeFingerprintForResuming
is turned off, but I'm not 100% sure. There is an initial test to see if localStorage is usable, but that's covered by a try-catch and is not part of the upload, so should be unrelated.Does the
tus-js-client
need localStorage regardless, and if not, what else do I need to set to disable the use?The text was updated successfully, but these errors were encountered: