File Upload with Type = submit

I need to upload a file using the Upload button in the UI but looks like the upload button object type=“submit”,
Can you pls help me how to handle this?
Appreciate your help

Keeping this real simple, type=submit is not a type=file. Search the HTML for a type=file.

Hey @Russ_Thomas, Thanks for your reply,
I see below lines,
<input id="upload-package-dlg" name="file" type="file" style="display:none;">
So,I have to use this xpath in the script?

It worked after referring this xpath, Thanks for your comment, that helped.