fileKey
function fileKey(file): string;Identity for deduplication.
Name, size and last-modified together: the browser gives no stable id for a file, and hashing the contents would mean reading every byte of a 2 GB video to answer a question the user does not care much about. Two files matching on all three are the same file for any practical purpose.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
file | File |
Returns
Section titled “Returns”string