Skip to content

Multiple upload instances, if/else #337

Answered by nd0ut
mnoesel asked this question in blocks
Discussion options

You must be logged in to vote

Hey @mnoesel,

you need to use separate lr-data-output blocks per uploader.

Or you could use LR_UPLOAD_FINISH global event (described here) like this:

window.addEventListener('LR_UPLOAD_FINISH', (e) => {
  const ctxName = e.detail.ctx
  const files = e.detail.data
  // check for ctxName and push files where you need
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by loookashow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
blocks
Labels
None yet
2 participants