Camera and file uploads on mobile
Phones are the best way to get photos and documents into your app: before/after pictures of a job, a signed delivery note, a receipt. MyAppBuilder's form inputs use the phone's own camera and file picker, so nothing needs to be installed beyond the app itself.
Phones are the best way to get photos and documents into your app: before/after pictures of a job, a signed delivery note, a receipt. MyAppBuilder's form inputs use the phone's own camera and file picker, so nothing needs to be installed beyond the app itself.
When to use
- Job photos, damage reports, proof of delivery.
- Customers attaching documents to a request.
- Scanning product barcodes or QR codes at a counter or warehouse.
The inputs
| Input | What the user sees | Best for |
|---|---|---|
| Camera | A "Take a photo" button that opens the rear camera directly (on phones) and uploads the shot | Quick photos in the field |
| Image Upload | A drop zone / "browse" button limited to images; on phones the picker offers Camera or Photo library | Choosing existing photos or taking new ones |
| File Upload | A drop zone / "browse" button for any allowed file type | PDFs, documents, spreadsheets |
| Barcode Scanner / QR Scanner | A live camera view that reads the code into the field, where the browser supports it | Stock and ticket lookups |
All of them are form inputs: place them inside a Form bound to an entity that has an image or file field, and the uploaded file is stored with the record when the form is submitted. The business component Before/After Photos (Job Photos) wires this up for you.
How to add photo capture to a form
- In Build, select the Form (or add one and bind it to the entity, for example Jobs or Job Photos).
- Add a Camera input (Forms category) and set its Field to the entity's image field.
- Optionally add an Image Upload next to it for photos already on the phone, with Multiple on if several photos are allowed.
- Keep the default Max size (10 MB per file) or lower it for slow connections; the app-side upload limit is 15 MB.
- Preview, then test on a real phone through staging: the builder preview cannot use your camera.
┌ New job photo ─────────────────────┐ │ Job [ #1042 Kitchen tap ▾ ] │ │ Photo [ 📷 Take a photo ] │ │ Notes [ ] │ │ [ Save photo ] │ └────────────────────────────────────┘
Where the files go
Files uploaded by app users are stored with your app's data (per environment: test uploads in staging and preview, live uploads in the live app), separate from the Assets you upload as a builder. Images are checked for their real type, resized on demand when displayed, and served through your app's file endpoint. Who can see a file follows the permissions of the record it belongs to.
Common mistakes
- Testing the camera in the builder preview. Inputs are disabled on the canvas and the preview cannot access the device camera; use staging on a phone.
- No image field on the entity. The input has nothing to save into; add an image or file field in Data first.
- Huge photos on slow connections. Modern phones produce 5–10 MB photos; lower Max size or warn users.
- Expecting scanning on every browser. Barcode and QR scanning rely on browser support (for example, Safari on iPhone has no built-in barcode reader); on unsupported browsers the field can still be typed by hand. The camera is only requested after the person taps Scan and is released when scanning stops; if camera access is blocked or no camera is found, the field says so and stays typeable.
Advanced
The Camera input renders a file input with capture="environment" and accept="image/*"; Image Upload uses accept="image/*" without capture; File Upload uses the component's accept list. Barcode and QR scanners open getUserMedia({ video: { facingMode: "environment" } }). Uploads go to /api/runtime/<projectId>/files (15 MB limit), with MIME sniffing and an allow-list of image, video, audio, PDF, text, Office and font types; SVGs are sanitised.