mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-31 05:50:08 +00:00
transloadit: Mark postprocessing as complete if an error occurred
This way stray postprocessing state doesn't interfere in future uploads.
This commit is contained in:
parent
d96e589a40
commit
7f6cb7a65d
1 changed files with 5 additions and 0 deletions
|
|
@ -273,6 +273,11 @@ module.exports = class Transloadit extends Plugin {
|
|||
// Remove this handler once we find the assembly we needed.
|
||||
this.core.emitter.off('transloadit:assembly-error', onAssemblyError)
|
||||
|
||||
// Clear postprocessing state for all our files.
|
||||
fileIDs.forEach((fileID) => {
|
||||
this.core.emit('core:postprocess-complete', fileID)
|
||||
})
|
||||
|
||||
// Reject the `afterUpload()` promise.
|
||||
reject(error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue