How to Upload a file from file from explorer

The below link might assist you.

Edit: Does your pathway have double slashes in it? It needs them. (A single slash is an escape character, like for the “new line”, \n, or “tab”, \t, so the second slash says that the first slash is just a slash.)

gImportFileName = 'G:\\Katalon Test Cases\\KatalonCASE\\Data Files\\Details.txt';