I have a custom Media Library tab and I would like to prevent the same media from being added more then once to the “Preview” tab. Media is added by passing it with the
I explored the
dialogApi.fileColl collection and found an
__items array but I am unsure how to interact with it.
Curious if there is a recommendation for how to compare a file to be added via
dialogApi.addFiles([uploadcare.fileFrom('uploaded', uuid, settings)]);
with a list of files that has already been added.