Gateway Files in Vision

Hello, I'd like to somehow use the file explorer to browse files on the gateway server. I want to store reports on the server and have the operators each be able to access them on clients. That would mean the operator browsing to a file on the server, then the PDF viewer opening that file on the same gateway server.

It appears that the file explorer and pdf viewer is limited to the client file system though? Is there any configuration that I am missing with these, or possibly another object that would work for what I need?

Thanks,
Chris

This is a big security risk if you're not careful.

Your most secure option is likely going to be to host your files in a database, rather than directly on the filesystem; then there's much less risk of file or information disclosure.

Another option is the Webdev module's mounted folders option: Web Dev - Ignition User Manual 8.1 - Ignition Documentation
Mounted folders do not automatically come with directory listing, but you could set something up with a Python endpoint (as long as you're careful about information disclosure, again).

Ok, say I was to host the files in a database. How would I go about viewing them in the PDF viewer?

In Vision, run a named query via scripting or otherwise to return the byte array/blob for the PDF you want to display.
Then load it into the viewer component:
https://docs.inductiveautomation.com/display/DOC81/Vision+-+PDF+Viewer+Scripting+Functions

Thanks PGriffith!

We do this (host in a database). If you want some pointers pm me and I can send you some resources.