Adds uploadID to complete event

This commit is contained in:
Rich Willars 2018-01-29 13:10:06 +00:00
parent 33f20fb0f4
commit 6ff0d40e98

View file

@ -1066,7 +1066,7 @@ class Uppy {
const files = fileIDs.map((fileID) => this.getFile(fileID))
const successful = files.filter((file) => file && !file.error)
const failed = files.filter((file) => file && file.error)
this.addResultData(uploadID, { successful, failed })
this.addResultData(uploadID, { successful, failed, uploadID })
const { currentUploads } = this.getState()
const result = currentUploads[uploadID].result