Hi Community,
I have a CSP page I am developing with the intent of pulling files from an SFTP site and placing them in a folder on the local network.
I am having an issue where the CSP page is catching a JS error. The error in the browser is - A JavaScript exception was caught during execution of HyperEvent: SyntaxError: Unexpected identifier 'downloading'. (However, the unexpected identifier changes after refreshing page, or after removing the Write statement with the work 'downloading' in it.)
I think I have narrowed it down to a piece of the Javascript code -
#server(..DownloadFiles(document.getElementById('fileList').value))#;
It doesn't seem to like this call to a back end method (..DownloadFiles) where the argument is (fileList). Can someone advise me if there is a better way to do this that will not cause the error?
Thanks,
Dan
Also, if required, I can upload more of the code used.