Is there any way to programmatically check if an upload widget has been initialized?
I've got a bit of an odd situation, where the same child upload can be associated with multiple parents on the page and I'm trying to set the file list on page load. Since the child exists twice, the (single) file is being displayed twice on each of the two widgets.
I'm using a class to target the children items to add an upload, since they have the same ID:
Then when I init the upload, I'm creating a files array:
When I console.log the files array, it only has the one item in it, so it looks like the duplication is happening because the inputs have the same class (which again, is because the ID is the same). There's no unique ID I can provide for these items, so I'm hoping to check if the widget has been init'd instead.