You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.flow.on('complete', () => { ... }) is running before this.flow.on('fileSuccess', async (flowFile, message, flowChunk) => { ... })
Inside fileSuccess I run a function that completes the multipart upload, and set the url to the value returned from that function. That url is then used inside the complete method. But since the complete method is running BEFORE fileSuccess, it doesn't have that url yet.
Isn't complete supposed to run only when uploading is complete?
Side note: This same approach works fine when using directories, this error/bug only occurs when uploading files.
The text was updated successfully, but these errors were encountered:
stephanieraymos
changed the title
Complete running before fieSuccess
Complete running before fileSuccess
Jan 25, 2023
this.flow.on('complete', () => { ... })
is running beforethis.flow.on('fileSuccess', async (flowFile, message, flowChunk) => { ... })
Inside fileSuccess I run a function that completes the multipart upload, and set the url to the value returned from that function. That url is then used inside the complete method. But since the complete method is running BEFORE fileSuccess, it doesn't have that url yet.
Isn't complete supposed to run only when uploading is complete?
Side note: This same approach works fine when using directories, this error/bug only occurs when uploading files.
The text was updated successfully, but these errors were encountered: