Hello,
I am trying to create a feature where when an image file is added to the Dashboard, another thumbnail file is created and added based on the preview property of the initial file. Until now, I have tried two methods:
- Create the new file on the
file-addedtrigger. Here it would enter an infinite loop that I have prevented with athumbnailflag in themetaproperty of the created file. But this does not feel like a viable option as I need the upload of the thumbnail files to be invisible to the user. - Use the
addPreProcessormethod to trigger the function that generated and uploads the thumbnail files. Here, I encountered several problems. The library only keeps track of the initial files for upload, so I have to manually trigger the upload process again for each thumbnail file. But when I trigger the upload process manually, thecompleteevent triggers, and I need the event to trigger other external processes.
Anyone have any advice on how to implement this without any of the drawbacks I have described?