Replace deprecated property in 5.9 (Resumable file upload)
This commit is contained in:
parent
6ec4c4fc99
commit
0f0a0c564a
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
1. First, create a file id, to uniquely identify the file we're going to upload:
|
||||||
```js
|
```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.
|
That's needed for resume upload, to tell the server what we're resuming.
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ class Uploader {
|
||||||
|
|
||||||
// create fileId that uniquely identifies the file
|
// create fileId that uniquely identifies the file
|
||||||
// we could also add user session identifier (if had one), to make it even more unique
|
// 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() {
|
async getUploadedBytes() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue