I'm trying add script on uploading or creating file in folder using rule. I plan to upload many files to folder. For now script is triggered for each uploading file even when I try to upload e.g. 5 files at once. Question: Is there any way to catch the moment when the last uploading file enters in folder? I add rule via java api.
Out of the box it is not possible as far as I know. There is a frontend action onFileUploadComplete in documentlibrary/actions.js, this only posts some activities currently, but you could use it to extend it and trigger a backend webscript that executes an action or rule.