Good day!
I am currently exploring the Ignition demo project for tutorial. I have come across Document Storage. whenever I try to open a file, an error shows:
Illegal character in authority at index 7:
[file://C](file://C):\Users\KCP_RND\Desktop\New Folder\Clarifications.docx
I have looked into the project in Ignition Designer and the script:
system.net.openURL(“file//” + path)
is the script in opening a file.
However, the value of the path is C:\Users\KCP_RND\Desktop\New Folder\Clarifications.docx
wherein \ are used instead of /.
What I did to confirm if it was the problem, was changed the script into
system.net.openURL(“file://C:/Users/KCP_RND/Desktop/New Folder/Clarifications.docx”)
and it worked.
Is there a way for me to change the \ to / in the path? Or do you have any suggestions on how I could address this?
Thank you very much and more power to your team.