Prioritizing First Path in Router for File Processing Irrespective of Upload Sequence
- November 27, 2023
- 1 reply
- 1476 views
In the context of my project, I am utilizing a watch record module. This module is specifically designed to detect uploaded files based on their names. Once a file is identified, the module triggers a download and conducts a series of operations on the file. The pathway these operations take is critical to the overall functionality of the module. Currently, the routing decision is based on the file names, specifically if the file name contains 'XYZ' or 'ABC'.
The challenge lies in the order in which the user uploads the files. I need to ensure that the first path is always prioritized, with the second path being a secondary option. I have attached pictures for your reference.
As of now, in some instances, the router initially takes the second path and then conducts the operation, irrespective of the order in which the files are uploaded.
How can I adjust or modify the settings of my watch record module to ensure that the processing of files always follows the first path in the router before considering the second path, regardless of the sequence of file uploads?

