Can't select file on mac to upload into youtube

I want the RPA to select the “subscribe now” file and upload to youtube. I am using the script below. I am able to have the RPA open the file selection dialogue box. However I am unable to get the RPA to selected the desired file. Can you help? Running Catalina 10.15.6

{
“Name”: “ut”,
“CreationDate”: “2023-7-13”,
“Commands”: [
{
“Command”: “click”,
“Target”: “xpath=//[@id="info-cards-editor-link"]/ytcp-dropdown-trigger/div/div[2]/span",
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//
[@id="label-container"]/div[2]”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XClick”,
“Target”: “jjg4dx_dpi_192.png”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XDesktopAutomation”,
“Target”: “True”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_DOWN}”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “pause”,
“Target”: “”,
“Value”: “”,
“Description”: “”
}
]
}

Maybe this info helps:

If not: Are you using Chrome or Firefox?