Servoy 6.1.6, web-client only. Deployed on Windows Server 2008 R2.
Users need to be able to view/download PDFs from the server. plugins.file.writefile does not work I suspect because the server is behind a NAT router. This is borne out by ```
plugins.it2be_tools.server().IP
Anyway when a user clicks to view the PDF I am copying the PDF to a folder location that I created: **C:\Users\abourke\apps\Servoy\application_server\server\webapps\ROOT\pdfdownloads**.
The copying part works fine.
I then use ```
application.showURL(newURL)
``` to view the PDF in the browser (what happens of course depends on the browser's PDF handling).
... where newUrl would be like ```
http://99.99.99.99:8080/pdfdownloads/7305E3FA-52CB-47F9-BEF4-9CB5DFB4C367/IIN606505.PDF
``` for example.
This results in Tomcat throwing 403 - Forbidden
This works fine on dev machine.
How do I grant permissions to allow read access to that pdfdownloads folder?
Thanks
yup I know, but i’s not quite clear… what you say works, and what does’nt work…
in case of the live app server, is the file created in the ROOT folder, yes or no?
So is it a writefile issue? or a read issue in Tomcat?