-
|
Hi, I'd need support to make this script work for multiple uploader instances on one site. Their CTX-Names are this: Uploaders: uploader-1, uploader-2, uploader-3 and uploader-4 This should be very easy for someone who can code. Greets. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey @mnoesel, you need to use separate Or you could use 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
}); |
Beta Was this translation helpful? Give feedback.
Hey @mnoesel,
you need to use separate
lr-data-outputblocks per uploader.Or you could use
LR_UPLOAD_FINISHglobal event (described here) like this: