How to add a phone photo to a form open on a computer
Your form is open on a computer, the photo is on a phone. Five ways to bridge the gap, with honest trade-offs, a decision table and what to measure.
The problem in one scene
Someone is filling in your claim form on a laptop. Step 4 asks for a photo of the damage. The photo is on their phone, or it does not exist yet and can only be taken with the phone. Your form opens the computer's Documents folder.
Nothing is broken, yet the visitor now has a logistics problem. The same happens with quote requests, after-sales returns, account opening and rental applications. This guide compares the ways to solve it, including doing nothing.
1. What visitors do today
Left alone, people improvise:
- Email to self. Send the photo to their own address, open webmail on the computer, download the attachment, find it in Downloads.
- Messaging apps. Post the photo in a chat with themselves, then open the app's web version.
- Cloud drives. Wait for the photo library to sync, then look for the file.
- USB cable. Plug the phone in, approve the prompt, browse the camera folders.
- AirDrop. Quick, but it shares with nearby Apple devices only.
- Start again on the phone. Leave the desktop session and retype everything.
In a Mozilla field study of 16 households, participants moved tasks between devices mostly with text messages, screenshots and emails to themselves.
What it costs
Every workaround takes the visitor out of your form and gives them several chances not to come back. There is no reliable public figure for abandonment caused by a photo step, and you should be wary of anyone who quotes one. The nearest solid data comes from checkout research: in Baymard Institute's survey, 17% of US online shoppers gave a checkout that was too long or too complicated as a reason for abandoning an order.
The other costs show in your own operations:
- Support contacts such as "I can't attach my photo" or "can I email it instead?".
- Files that arrive by email and must be matched to a case by hand.
- Copies of personal documents left in mailboxes and Downloads folders.
2. Make the form work on a phone, and know what capture does
Do this first. If the form works well on a phone, visitors who start there never meet the problem.
web.dev documents that <input type="file" accept="image/*"> works on all platforms: on a desktop it opens the file system, and on iOS and Android it offers a choice that includes the camera.
The capture attribute goes further and asks for the camera directly.
<!-- The visitor chooses: camera, photo library or files -->
<input type="file" name="proof" accept="image/*,application/pdf">
<!-- Asks for the rear camera straight away -->
<input type="file" name="damage" accept="image/*" capture="environment">
According to MDN, the values are user for the camera facing the user and environment for the outward-facing one. Two facts matter before you add it:
- It is mobile only. web.dev states that
captureworks on Android and iOS and is ignored on desktop, and caniuse lists desktop Chrome, Edge, Firefox and Safari as not supporting it. - It can remove a choice. On Android, web.dev notes, a field with
captureno longer lets the visitor pick an existing picture. That is wrong for a photo taken yesterday or a document that is already a PDF.
Pros: free, standard HTML, no third party. Cons: it only helps visitors already on the phone. The person who chose the computer is exactly where they were.
3. "Continue on your phone" links by email or SMS
The form offers to send a link. The visitor opens it on the phone and either finishes the form there, or only adds the photo, which your server attaches to the case.
Pros
- It works on any phone with a browser, and the two devices need not be in the same room.
- It works later. If the car is at the garage or a flatmate holds the document, a saved draft and a link are the right tool.
Cons
- It is a real project: server-side drafts, a signed, short-lived token, an upload endpoint, and a way to tell the open desktop page that the file arrived.
- It asks for an email address or a mobile number, sometimes before the visitor is ready to give one.
- Delivery is uncertain: spam folders, delayed texts, a typo in the number. SMS is billed per message.
- It trains customers to tap links in messages. The US Federal Trade Commission tells consumers not to click links in unexpected texts that ask for personal information. Keep yours recognisable: your sender name, your own domain.
- Anyone who holds the message can use the link.
4. Operating-system features: Continuity Camera and Phone Link
Apple Continuity Camera lets a Mac user take a photo or scan a document with an iPhone and have it appear on the Mac. Apple's requirements are Wi-Fi and Bluetooth on for both devices and the same Apple Account, with two-factor authentication. It works in the apps Apple lists, such as Finder, Mail, Notes and Pages.
Windows Phone Link pairs a phone with a PC. Microsoft's requirements are Android 10 or iOS 16 at least, the same Microsoft account on both sides, the same Wi-Fi network for an Android phone and Bluetooth for an iPhone.
For visitors who have set these up, they are excellent, and mentioning them in your help text costs nothing. A website still cannot rely on them:
- A web page has no standard way to trigger them, or to know whether they are set up.
- Each covers specific pairings and needs prior setup, which a shared, borrowed or locked-down work computer does not have.
- The photo usually lands in a folder or an app, and the visitor must still find it from your file picker.
5. QR-code handoff into the open form
The desktop form shows a QR code beside the file field. The visitor scans it, a web page opens on the phone, they take or choose a photo, and the file appears in the form still open on the computer.
There are two ways to build it:
- Through your server. The QR code carries a one-time token, the phone uploads the file to your backend, and the desktop page is told that it arrived. This works on any network, but needs new endpoints and temporary storage for a file not yet tied to a submitted form.
- Browser to browser. The two browsers connect with WebRTC and the file passes over a data channel into the desktop page, which places it in the file input. MDN explains that data channels are always encrypted with DTLS and that peer-to-peer data does not pass through the web or application server. Your upload code does not change.
BeamField is a ready-made version of the second design. It adds a "Use phone" button beside an existing <input type="file">, and the photo arrives as a normal browser File, so your own validation and upload continue unchanged. The file is also end-to-end encrypted with AES-256-GCM, using a key carried in the fragment of the QR code's address. Browsers do not send the fragment to the server, so BeamField's servers introduce the two browsers but never hold the key and do not store the file. Sessions expire after ten minutes and integration is one script snippet. Try it on the home page or in the integration lab, and read the security model in the trust centre.
Pros
- Nothing to type, no message to wait for, no app, no account, and nothing to restart.
- It works with any pairing of phone and computer that has a current browser.
Cons
- Both devices must be at hand and online at the same moment. There is no "later".
- The visitor has to trust a QR code. Nielsen Norman Group's guidelines ask designers to give enough context for people to be willing to scan, so say what will happen right beside the code.
- Not everyone can or wants to scan, and a session can fail. The ordinary file picker must stay visible as the default path.
- A browser-to-browser link depends on the two networks, and on strict ones a relay must forward the encrypted data. Building this means running that infrastructure. Buying it means assessing a third-party script like any other dependency.
6. Which approach for which situation
| Situation | Best fit | Why |
|---|---|---|
| The visitor is already on a phone | Mobile-friendly form with a plain file input | Camera and photo library are one tap away |
| You always need a fresh photo, on mobile | capture="environment" | Opens the camera directly, but blocks existing photos on Android |
| Visitor on a computer, phone at hand, photo needed now | QR-code handoff | Nothing to type, nothing to retype |
| The photo cannot be taken now, or someone else holds the document | Saved draft with an email or SMS link | Works later and from another place |
| Internal tool on managed Macs and iPhones | Operating-system features, explained in the help text | You control the hardware and the accounts |
These options combine well: fix the mobile form first, add a handoff for desktop visitors, and keep a link for cases that cannot be finished in one sitting.
7. What to measure
Instrument the file step before you change anything, and split every number by device type.
- Completion rate of the file step. Of the visitors who reach the step, the share who attach a valid file. A desktop rate well below the mobile rate is the signature of this problem.
- Time to attach. Seconds between the step appearing and a file being accepted. Workarounds show up as long pauses.
- Support contacts about attachments, and documents received outside the form.
- Quality and failures. The share of files rejected, links that expire unused and QR sessions never completed.
Take a baseline over a few weeks, change one thing, and compare the same numbers.
FAQ
Does the visitor have to install an app?
Not for the web approaches. A link or a QR code opens an ordinary web page in the phone's browser. Only the operating-system features need prior setup.
Does capture open the phone camera from a desktop page?
No. Desktop browsers ignore the attribute. It only affects the device on which the form is displayed.
Is it safe to send identity documents this way?
Ask three questions of each approach: where does the file travel, who can read it on the way, and where do copies remain? A relay through your server makes temporary storage your responsibility. With a third-party service, ask in writing whether the provider can read or store the file. None of this replaces validating and scanning every file on your server.
What does each option cost?
A mobile-friendly form and capture cost development time only. Links add SMS fees. A QR handoff is either infrastructure you run or a subscription: BeamField, for example, has a free 14-day pilot and paid plans at 19, 49 and 99 euros a month. Measure the file step first so you know what the change was worth.
More practical guides are on the guides page.