I used WMI win32_process to get a list of the browser's process IDs, then compared it with the process ID of the file selection window to get Hwnd, then sent the file paths to the EditBox, and then pressed Open.
Some websites cannot send attachments from the clipboard using Sendkeys Ctrl+V, so this is a very important feature for automation.