Upload images dont work

Hello,
when I try upload images don´t work, option “Allow access to file URL” is enabled on UI vision RPA extension Chrome browser.
It worked for me days ago but now it doesn’t work, I’ve seen a example video of the explanation and it doesn’t work for me either.
the local path is correct because I copy and paste the path in chrome browser and it loads the image correctly.
The name of the image appears next to the button to select the file but below appears a message “Error when processing image. undefined” and the preview of the image does not appear either. If I do this whole process manually with the same image, everything works.
What could be the problem so that it does not upload the files?
Basic example where it doesn’t work for me::

{
“Name”: “subida”,
“CreationDate”: “2023-3-25”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://ocr.space/”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “id=imageFile”,
“Value”: “”,
“Targets”: [
“id=imageFile”,
“xpath=//[@id="imageFile"]",
“xpath=//input[@id=‘imageFile’]”,
“xpath=//div[2]/input”,
“css=#imageFile”
],
“Description”: “”
},
{
“Command”: “type”,
“Target”: “id=imageFile”,
“Value”: “C:\Users\crist\Downloads\test\ahoyadora-a-gasolina-19kw-garland-auger-1211tg-v20.jpg”,
“Targets”: [
“id=imageFile”,
"xpath=//
[@id="imageFile"]”,
“xpath=//input[@id=‘imageFile’]”,
“xpath=//div[2]/input”,
“css=#imageFile”
],
“Description”: “”
},
{
“Command”: “click”,
“Target”: “linkText=Start OCR!”,
“Value”: “”,
“Description”: “”
}
]
}

When I try a recorded file upload with the TYPE command, I get:

  • [info]

Executing: | type | id=imageFile | C:\test\150.jpg |

  • [error]

[Line 3]ipcPromise: onAsk timeout 10000 for cmd “PANEL_CALL_PLAY_TAB”, args {“ipcTimeout”:100,“ipcNoLaterThan”:3359518794578,“payload”:{“command”:“RUN_COMMAND”,“args”:{“command”:{“cmd”:“type”,“target”:“id=imageFile”,“value”:“C:\test\150.jpg”,“targetOptions”:[“id=imageFile”,“xpath=//*[@id="imageFile"]”,“xpath=//input[@id=‘imageFile’]”,“xpath=//div[2]/input”,“css=#imageFile”],“description”:“”,“extra”:{“playHighlightElements”:true,“playScrollElementsIntoView”:true,“timeoutPageLoad”:60,“timeoutElement”:10,“timeoutDownload”:60,“timeoutDownloadStart”:10,“lastCommandOk”:true,“errorIgnore”:false,“waitForVisible”:false,“retryInfo”:{“retryCount”:0}}}}}}

What works well is to use XClick to click on “Choose File” and then XType to enter the file name:

{
  "Name": "file upload",
  "CreationDate": "2023-3-25",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ocr.space/",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XClick",
      "Target": "choose_dpi_168.png",
      "Value": "",
      "Targets": [
        "id=imageFile",
        "xpath=//*[@id=\"imageFile\"]",
        "xpath=//input[@id='imageFile']",
        "xpath=//div[2]/input",
        "css=#imageFile"
      ],
      "Description": ""
    },
    {
      "Command": "XType",
      "Target": "C:\\test\\roadsign1.jpg",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "id=engine5",
      "Value": "",
      "Targets": [
        "id=engine5",
        "name=OCREngine",
        "xpath=//*[@id=\"engine5\"]",
        "xpath=//input[@id='engine5']",
        "xpath=//div[4]/label/input",
        "css=#engine5"
      ],
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "linkText=Start OCR!",
      "Value": "",
      "Targets": [
        "linkText=Start OCR!",
        "xpath=//*[@id=\"btnStartOCR\"]/a",
        "xpath=//a[@onclick='StartOCR()']",
        "xpath=//div[13]/div[2]/a",
        "css=#btnStartOCR > a"
      ],
      "Description": ""
    }
  ]
}

See also this older post.

PS: Instead of using XClick | imageOfButton you can also use the XClickText | Choose command.

{
      "Command": "type",
      "Target": "id=imageFile",
      "Value": "C:\\Users\\aaa\\Downloads\\Screenshot 2023-03-26 053048.png",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "linkText=Start OCR!",
      "Value": "",
      "Description": ""
    }

thank you very mach! this work :slight_smile: