Replace deprecated property in 5.9 (Resumable file upload)

This commit is contained in:
Vse Mozhe Buty 2020-11-28 22:49:20 +02:00
parent 6ec4c4fc99
commit 0f0a0c564a
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ To resume upload, we need to know *exactly* the number of bytes received by the
1. First, create a file id, to uniquely identify the file we're going to upload:
```js
let fileId = file.name + '-' + file.size + '-' + +file.lastModifiedDate;
let fileId = file.name + '-' + file.size + '-' + file.lastModified;
```
That's needed for resume upload, to tell the server what we're resuming.

View file

@ -6,7 +6,7 @@ class Uploader {
// create fileId that uniquely identifies the file
// we could also add user session identifier (if had one), to make it even more unique
this.fileId = file.name + '-' + file.size + '-' + +file.lastModifiedDate;
this.fileId = file.name + '-' + file.size + '-' + file.lastModified;
}
async getUploadedBytes() {