Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/FileUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,7 @@ export default defineComponent({
form.append(key, value)
}
}
form.append('lastModified', Math.round(file.file.lastModified / 1000))

// Moved file.name as the first option to set the filename of the uploaded file, since file.name
// contains the full (relative) path of the file not just the filename as in file.file.filename
Expand Down
3 changes: 2 additions & 1 deletion src/chunk/ChunkUploadHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ export default class ChunkUploadHandler {
url: this.action,
body: Object.assign(this.finishBody, {
phase: 'finish',
session_id: this.sessionId
session_id: this.sessionId,
lastModified: Math.round(this.file.file.lastModified / 1000)
})
}).then(res => {
this.file.response = res
Expand Down