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
As can be seen in the code, the fingerprint function has to differentiate between the different types of sources that tus-js-client can handle. For example, it needs to handle React Native files differently than File/Blob instances. In addition, it does not contain proper handling for streaming sources.
Generating a fingerprint should not be handled in one central function but be delegated to the FileSource instances, which handle the specific access to different input types. These instance know best how to compute the most accurate fingerprint.
That being said, we should still provider users with the ability to influence the fingerprint and add just information in it.
The text was updated successfully, but these errors were encountered:
Currently, fingerprints are calculated through the function that is passed in through the
fingerprint
option, defaulting to following implementation:tus-js-client/lib/browser/fileSignature.js
Lines 12 to 27 in ca63ba2
As can be seen in the code, the fingerprint function has to differentiate between the different types of sources that tus-js-client can handle. For example, it needs to handle React Native files differently than
File
/Blob
instances. In addition, it does not contain proper handling for streaming sources.Generating a fingerprint should not be handled in one central function but be delegated to the FileSource instances, which handle the specific access to different input types. These instance know best how to compute the most accurate fingerprint.
That being said, we should still provider users with the ability to influence the fingerprint and add just information in it.
The text was updated successfully, but these errors were encountered: