# Test photo and file pickers in a mobile app

> Picking a photo or a file runs through the phone's own screens, which app tests rarely reach. A real iPhone run picks a photo, a PDF, and a PDF where an image belongs.

By Jason Nguyen, Founder, Testsy. Published 2026-11-21. https://testsy.dev/blog/test-photo-and-file-pickers-in-a-mobile-app/

## The screens your app does not own

"Add a photo" and "Attach a document" look like one button in your app. Behind the button, the phone takes over: the photo picker, the Files browser, sometimes a permission prompt first. Your app gets a result back, or nothing, and has to cope with either.

That hand-over is where apps break, and developers report it on Apple's forums and in library issue trackers:

- With **limited photo access** (the user shared only some photos), a .NET MAUI app's users were [unable to select any images](https://github.com/dotnet/maui/discussions/22085) after choosing which ones to share.
- An app moved to the new system picker and some users [could no longer choose media](https://developer.apple.com/forums/thread/664145).
- On iOS 26.4 one developer reports the picker [failing to render its photo grid](https://developer.apple.com/forums/thread/836246) with an "Unable to load photo" alert.
- A Flutter picker plugin's users found it [ignores the photos the user limited it to](https://www.github.com/miguelpruivo/flutter_file_picker/issues/1439) and shows the whole library.

Then there are your own app's rules: the image field that must refuse a PDF, the upload that must keep the photo's full size, the file name that must survive the trip.

## The run

We ran this on an iPhone with iOS 27 and our practice app QA Lab. The test puts its own sample files on the phone first, so nothing depends on what happens to be in the gallery:

```text
Add the sample photo qa-receipt.jpg to the phone's gallery, open
Media & files, tap Pick a photo and choose that photo; verify Photo:
selected and Photo size: 1200×1600. Then put the sample file
qa-form.pdf on the phone. Tap Pick a file and choose qa-form.pdf;
verify File: qa-form.pdf. Then tap Choose image file (it opens the
phone's file browser, which lists every kind of file, not the photo
picker) and choose qa-form.pdf there; verify Photo file: qa-form.pdf
is not an image.
```

The picture at the top of this page shows the photo picked at its full size, the phone's Files browser with the PDF in it, and the app refusing the PDF where an image is expected. All 11 checks passed in 4 minutes 4 seconds.

![The checks: the photo's size, the file name, and the refusal, each with what the screen said.](https://testsy.dev/blog/img/pickers-checks.webp)

Details from the result worth knowing:

- **The first tap on Pick a photo did not open the picker.** The tester tapped again and the check records it. If your users see the same, that is a bug worth its own test.
- **The Files browser shows "qa-form" without ".pdf".** The tester matched it anyway, and the app's own line shows the full name. Write checks against what your app shows, not what the phone's browser shows.
- **The size check is what proves the photo arrived whole.** "Photo: selected" alone would pass on a thumbnail.

[Recording: The review video of the run.](https://testsy.dev/blog/video/pickers.mp4)

Open [the run](https://app.testsy.dev/share/GPq3bFalo1fmG2xCXDR93Y3HTZVJ4P2e) (live until 18 February 2027).

One more honest note: our first attempt at this run stopped with an error on our side while it was in the Files browser. It was not counted against the workspace's runs, and the second attempt passed.

## Tests worth adding for your app

- **Limited photo access.** Allow access to selected photos only, then pick one of them; then try to pick one that was not shared. [Permission prompts](https://testsy.dev/blog/test-permission-prompts-in-a-mobile-app/) shows a run that answers the phone's prompts.
- **Upload and reopen.** Pick a photo, save, close the screen, reopen it and check the photo is still there at full size.
- **The wrong file.** A PDF where a photo belongs, a 30 MB video where the limit is 10: each gets a clear message.
- **Android.** The same test runs on Android, where the picker is different again ([one test for both](https://testsy.dev/blog/one-test-for-iphone-and-android/)).

This post is part of [Mobile release testing for app teams](https://testsy.dev/blog/mobile-release-testing-for-app-teams/).
