I have a weird issue I’ve been dealing with for the past couple days. I’m using a file upload component to upload a file onto a server (bypassing a horrible file upload interface in a web application). The filename is of this format:
filename.pdf is the name of the uploaded file. The UNC path
//SERVER-NAME/Path is added to the
I tried to run a simple script in the Script console to troubleshoot, but the file wrote successfully from the Script Console. Here is the sample script which worked correctly:
bytes = bytearray(b'HELLO WORLD') filename = '//SERVER-NAME/Path/testdoc.pdf' system.file.writeFile(filename, bytes)
I don’t know why a button press doesn’t yield the same result. When I log the exception that is thrown, it says
"File '//SERVER-NAME/Path/testdoc.pdf' doesn't exist or isn't a file"
What could be the problem?