Exclude "modified date" for Firefox/Android

## Issue
It appears that the modification date of the Android file changes when selected, so that file was deemed "different" when trying to resume upload.

## Change
Exclude modification date for now. Let's assume a smart user.
This commit is contained in:
infinite-persistence 2021-11-03 14:54:32 +08:00
parent bef7ff4a2d
commit 9d25d82bed
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -1,8 +1,5 @@
// @flow // @flow
export function serializeFileObj(file: File) { export function serializeFileObj(file: File) {
// $FlowFixMe - these are non standard, but try to include anyway. return `${file.name}#${file.type}#${file.size}`;
const aux = `${String(file.lastModifiedDate)}#${String(file.webkitRelativePath)}`;
return `${file.name}#${file.type}#${file.size}#${file.lastModified}#${aux}`;
} }