# List Files On File Server and Select

**URL:** <https://forum.inductiveautomation.com/t/list-files-on-file-server-and-select/9602>\
**Category:** Ignition\
**Created:** [January 26, 2015, 9:51pm UTC](https://forum.inductiveautomation.com/t/list-files-on-file-server-and-select/9602 "2015-01-26T21:51:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Automator59](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Automator59](https://forum.inductiveautomation.com/u/Automator59)\
**Post date:** [January 26, 2015, 9:51pm UTC](https://forum.inductiveautomation.com/t/list-files-on-file-server-and-select/9602/1 "2015-01-26T21:51:50Z")

</div>

I need to display PDF files on clients that are selected from a separate management project. I would like to store the files on the server web server (instead of doing shared folders) and the project to select what file to display to view the available files on the clients. The management project could be run from any number of workstations, but would need to store the files on the web server (e.g. MyWebServer:8088/main/PdfLocation) and then list the stored files for scheduling their display. I am thinking of using the File Explorer object to select any PDF file available to the management workstation and when selected, copy the file to the web server location and store that path information in a MS SQL database table. The issue I am having is to copy the file to the server location without using shared folders.

Any ideas on a work around on that?

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [January 27, 2015, 1:04am UTC](https://forum.inductiveautomation.com/t/list-files-on-file-server-and-select/9602/2 "2015-01-27T01:04:32Z")

</div>

Is it an option to store the pdf files directly in the database?

---

<div class="post-metadata">

**Author:** ![Automator59](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Automator59](https://forum.inductiveautomation.com/u/Automator59)\
**Post date:** [January 27, 2015, 1:33am UTC](https://forum.inductiveautomation.com/t/list-files-on-file-server-and-select/9602/3 "2015-01-27T01:33:02Z")

</div>

Not necessarily opposed to it, but not sure how to implement that method either. We have MS SQL Server 2008 in the system now and not really a lot of items being stored. Ignition and the DB Server are the same machine running Windows Server OS.

---

<div class="post-metadata">

**Author:** ![Pat](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@Pat](https://forum.inductiveautomation.com/u/Pat)\
**Post date:** [January 27, 2015, 4:06pm UTC](https://forum.inductiveautomation.com/t/list-files-on-file-server-and-select/9602/4 "2015-01-27T16:06:40Z")

</div>

Here’s a video on how to store and retrieve pdfs from a database -  
[https://inductiveuniversity.com/video/storing-files-in-a-database?r=/course/sql-ignition](https://inductiveuniversity.com/video/storing-files-in-a-database?r=/course/sql-ignition)

---

<div class="post-metadata">

**Author:** ![allenr8](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@allenr8](https://forum.inductiveautomation.com/u/allenr8)\
**Post date:** [January 28, 2015, 9:04pm UTC](https://forum.inductiveautomation.com/t/list-files-on-file-server-and-select/9602/5 "2015-01-28T21:04:42Z")

</div>

As long as your aren’t storing a ton of stuff the DB is a convenient place to do it since you are already accessing it.

MSSQL also has Filestream that is more optimized if you are storing a lot of files, but I haven’t actually tried to use that in Ignition. I’ve just done BLOB types like shown in the video Pat linked.

Also if you want to do Filestream that is something you would want to set up as you are installing MSSQL - going back and adding it will make you want to cry.
