Hello,
I'm currently working with the File Manager component in Angular, and I'm trying to implement a custom drag-and-drop behavior for uploading files and folders from the file system. My goal is to dynamically set the directoryUpload option based on whether the dropped item is a file or a folder. However, I'm encountering a timing issue where the directoryUpload setting only takes effect on the second drop, not the first one.
Here’s a summary of what I'm aiming to achieve:
- External File or Folder Drop: When users drag and drop items from outside the application (from their file system) into the File Manager, I need to detect whether each dropped item is a file or a folder.
- Dynamic Setting of
directoryUpload: I want to set directoryUpload to true if a folder is detected, and false if a file is detected. - Immediate Effect: The
directoryUpload setting should apply immediately on the first drop, so the correct upload behavior is triggered right away without requiring a second drop.

Thanks for helping