# Restricting FileUpload to Only Use Camera Photos (No Gallery Selection) – Perspective

**URL:** <https://forum.inductiveautomation.com/t/restricting-fileupload-to-only-use-camera-photos-no-gallery-selection-perspective/108923>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 24, 2025, 7:08pm UTC](https://forum.inductiveautomation.com/t/restricting-fileupload-to-only-use-camera-photos-no-gallery-selection-perspective/108923 "2025-07-24T19:08:22Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [June 23, 2026, 9:47pm UTC](https://forum.inductiveautomation.com/t/restricting-fileupload-to-only-use-camera-photos-no-gallery-selection-perspective/108923/5 "2026-06-23T21:47:32Z")

</div>

> [@paul-griffith](#):
>
> (talk to @bmusson, maybe)

You can now do this using Embr Periscope's Client Resource feature:

> [@Musson Industrial's Embr-Periscope Module](https://forum.inductiveautomation.com/t/musson-industrials-embr-periscope-module/99047/89):
>
> Release Notice [Embr v8.1 - 2026.5.28](https://github.com/mussonindustrial/embr/releases/tag/releases%2F8.1%2F2026.5.28)[Embr v8.3 - 2026.5.28](https://github.com/mussonindustrial/embr/releases/tag/releases%2F8.3%2F2026.5.28)Client Resources + React Component Client Resources are files compiled to JavaScript that are loaded by the Perspective client on launch. There are currently two supported types: TypeScript (supports JavaScript, TypeScript, JSX, and TSX) CSS Modules All Client Resources loaded and run on page load/refresh, serving as a direct, robust alternative to Markdown Injection. They can also provide React components, which can be used via a …

In a Client Resource module, you can write a custom input component that has a [capture](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/capture) attribute.

You'll need to manually handle routing the `onChange` event to the Gateway.  
I'd recommend either:

1. Sending the file to a WebDev endpoint.
2. Explore using the client-side `FileUploadUtility` + a custom Page event listener subscribed to [FileUploadModelDelegate.FileUploadedToPageEvent's](https://sdk.inductiveautomation.com/javadoc/ignition81/8.1.33/com/inductiveautomation/perspective/gateway/components/FileUploadModelDelegate.FileUploadedToPageEvent.html).
3. Possibly sending the bytes to a message handler if the file size isn't too large.

---

_[View the full topic](https://forum.inductiveautomation.com/t/restricting-fileupload-to-only-use-camera-photos-no-gallery-selection-perspective/108923)._
