My Angular project features a drag and drop file upload function. I have two options for uploading files - either by dragging and dropping them, or by clicking the icon and selecting the desired file.
The drag and drop feature works perfectly fine. However, when I click on the plus icon, it opens the finder (or File Explorer in Windows) where I can choose an image or file to upload.
Currently, every time I click on the plus icon, it automatically opens the finder. What I would like is for the finder to open only when I double-click on the icon. Single-clicking should not trigger the finder to open.
If you'd like to see an example of the file upload setup in Stackblitz, you can check out this link: stackblitz
<input-file placeholder="Pictures"
fileAccept="image/*"
fileLimit="2"
(dblclick)="openFolder()"></input-file>
Could someone please assist me with implementing this functionality?