# How to Automate Image Uploads from Directory on Client System

**URL:** <https://forum.inductiveautomation.com/t/how-to-automate-image-uploads-from-directory-on-client-system/80472>\
**Category:** Ignition\
**Tags:** ignition81, scripting, vision\
**Created:** [October 13, 2023, 7:19pm UTC](https://forum.inductiveautomation.com/t/how-to-automate-image-uploads-from-directory-on-client-system/80472 "2023-10-13T19:19:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keith\_Teeple](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@Keith\_Teeple](https://forum.inductiveautomation.com/u/Keith_Teeple)\
**Post date:** [October 13, 2023, 7:19pm UTC](https://forum.inductiveautomation.com/t/how-to-automate-image-uploads-from-directory-on-client-system/80472/1 "2023-10-13T19:19:22Z")

</div>

I am designing a user interface for an optical system that takes pictures at regular intervals of objects on a conveyor belt. As pictures are taken and saved to the PC that the client is running on, I would like to be able to display these image as thumbnails along the bottom of the screen so that the user can see the last 10 or so images that have been captured. Think of something similar to the photo roll at the bottom of the photos app on a typical smartphone.

I'm aware that I can put an image component in my window and then bind the image directory to something that's been uploaded to the Image Management tool, but how can I automate this via scripting so that the most recently captured image is always displayed in the rightmost image object, with the second most recently captured image shown second from the right, and so on?

Is what I am describing possible?

Thank you.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 13, 2023, 7:23pm UTC](https://forum.inductiveautomation.com/t/how-to-automate-image-uploads-from-directory-on-client-system/80472/2 "2023-10-13T19:23:22Z")

</div>

It sounds like you are developing in Vision. Add the tag to your question title or you may cause some confusion.

---

<div class="post-metadata">

**Author:** ![Keith\_Teeple](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@Keith\_Teeple](https://forum.inductiveautomation.com/u/Keith_Teeple)\
**Post date:** [October 16, 2023, 12:16pm UTC](https://forum.inductiveautomation.com/t/how-to-automate-image-uploads-from-directory-on-client-system/80472/3 "2023-10-16T12:16:12Z")

</div>

Thanks, good call. Tag added.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 16, 2023, 12:28pm UTC](https://forum.inductiveautomation.com/t/how-to-automate-image-uploads-from-directory-on-client-system/80472/4 "2023-10-16T12:28:30Z")

</div>

The simplest solution is to run a Vision Client timer event that scans the directory for new files, comparing against the last results kept in a project script module top-level variable. Store relevant information in a Vision Client Tag for the UI to bind against.

---

<div class="post-metadata">

**Author:** ![Keith\_Teeple](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@Keith\_Teeple](https://forum.inductiveautomation.com/u/Keith_Teeple)\
**Post date:** [October 17, 2023, 6:08pm UTC](https://forum.inductiveautomation.com/t/how-to-automate-image-uploads-from-directory-on-client-system/80472/5 "2023-10-17T18:08:49Z")

</div>

This solution worked. Thanks for your reply and suggestion.
