Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Access to path D:\Capture.png is denied. This can be changed using the FileSystemAccessAllowedPaths setting in deploy.config
I am trying to attach a file to mail (smtp connector) using absolute path. I am facing the above error. What is the neccessary change need to be done in deploy.config of web connectors to overcome this. Any suggestion would be welcomed
Baarathi
Thanks and Regards.
There are some examples in the deploy.conf file.
<!-- ****************************************************************************************************** ********** This replaces the <AllowConnectorsFileSystemAccess> element in previous versions ********** ****************************************************************************************************** Some connectors can read/write to disk, this element lets you whitelist which paths the connectors are permitted to access. Notes: * Multiple paths should be delimitted with a semicolon (;). * If you want to white list ALL paths use a * * This setting applies across all connectors. * The account running the connector exe must also have permission to access any file in question. * Leaving it empty is equivalent to denying the connectors file system access. Some Examples: <FileSystemAccessAllowedPaths>c:\QWC\TempFiles;c:\SomeOtherDirectory</FileSystemAccessAllowedPaths> <FileSystemAccessAllowedPaths>c:\</FileSystemAccessAllowedPaths> <FileSystemAccessAllowedPaths>*</FileSystemAccessAllowedPaths> -->
Can you explain what you don't understand? All you need to do is copy one of the examples, add it below the comment section with the examples and change the path setting between the element tags.
As the message says there's a FileSystemAccessAllowedPaths setting in the deploy.config file. You need to change that setting and include the path 😧 to it.
Personally I wouldn't do that. Instead I'd create a specific folder like D:\Images and put the Capture.png image in that folder. Then I'd add only D:\Images in the setting for FileSystemAccessAllowedPaths. Otherwise your entire 😧 disk will be accessable by the smtp connector. And someone might take advantage of that to mail files that shouldn't be mailed.
There are some examples in the deploy.conf file.
<!-- ****************************************************************************************************** ********** This replaces the <AllowConnectorsFileSystemAccess> element in previous versions ********** ****************************************************************************************************** Some connectors can read/write to disk, this element lets you whitelist which paths the connectors are permitted to access. Notes: * Multiple paths should be delimitted with a semicolon (;). * If you want to white list ALL paths use a * * This setting applies across all connectors. * The account running the connector exe must also have permission to access any file in question. * Leaving it empty is equivalent to denying the connectors file system access. Some Examples: <FileSystemAccessAllowedPaths>c:\QWC\TempFiles;c:\SomeOtherDirectory</FileSystemAccessAllowedPaths> <FileSystemAccessAllowedPaths>c:\</FileSystemAccessAllowedPaths> <FileSystemAccessAllowedPaths>*</FileSystemAccessAllowedPaths> -->
Can you explain what you don't understand? All you need to do is copy one of the examples, add it below the comment section with the examples and change the path setting between the element tags.