Merge pull request #2324 from vsemozhetbyt/p5.9

Replace deprecated property in 5.9 (Resumable file upload)
This commit is contained in:
Ilya Kantor 2020-11-29 11:15:19 +03:00 committed by GitHub
commit 59c54002ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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() {