Skip to content

Commit 0f0a0c5

Browse files
committed
Replace deprecated property in 5.9 (Resumable file upload)
1 parent 6ec4c4f commit 0f0a0c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: 5-network/09-resume-upload/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To resume upload, we need to know *exactly* the number of bytes received by the
2424

2525
1. First, create a file id, to uniquely identify the file we're going to upload:
2626
```js
27-
let fileId = file.name + '-' + file.size + '-' + +file.lastModifiedDate;
27+
let fileId = file.name + '-' + file.size + '-' + file.lastModified;
2828
```
2929
That's needed for resume upload, to tell the server what we're resuming.
3030

Diff for: 5-network/09-resume-upload/upload-resume.view/uploader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Uploader {
66

77
// create fileId that uniquely identifies the file
88
// we could also add user session identifier (if had one), to make it even more unique
9-
this.fileId = file.name + '-' + file.size + '-' + +file.lastModifiedDate;
9+
this.fileId = file.name + '-' + file.size + '-' + file.lastModified;
1010
}
1111

1212
async getUploadedBytes() {

0 commit comments

Comments
 (0)