Uploading files in headless mode

Hello!
have a problem with uploading files in headless mode. For now i am using the Java ROBOT feature. It is working fine but it cant be launched in headless mode. How do you colleagues solve this issue when you need to upload for example photo using Katalon in headless mode

Hi
I am having the same issue, were you able to upload in headless mode?

Hi! try to use


import com.kms.katalon.core.configuration.RunConfiguration as RunConfiguration
//project directory  +/Data Files/  
//here need to be stored uploading files
String path = RunConfiguration.getProjectDir() + '/Data Files/'
path = path.replace('/', '\\')
WebUI.uploadFile(findTestObject('Youtobject'), path + 'image1.jpg')