Skip to main content
Camera access and file uploads let users add photos, documents, and other media from your app. Common use cases include profile photos, document submission, in-app image capture, and media sharing in social, e-commerce, and business apps. This guide covers everything you need to implement camera and file upload support in Median apps on both iOS and Android, including platform-specific configuration for Android camera capture quality and gallery storage.
Developer DemoTest camera and file upload functionality during development using the live demo pages.

Implementation guide

File and image uploads are natively supported in both iOS and Android WebViews, which power Median’s native mobile apps. No additional plugins or configuration are required to enable basic upload functionality. To enable file or image selection in your web app, use the standard HTML <input type="file"> element. The native WebView and operating system handle the presentation of the system file picker or camera options to the user automatically. For the full list of supported attributes and implementation best practices, refer to the MDN documentation on Input File.

Android camera capture configuration

Android onlyThe camera capture configuration options below are Android-specific and are not supported on iOS.
On Android, Median exposes additional controls for camera behavior via the Median JavaScript Bridge. These settings let you tune capture quality and control how captured media is stored on the device.

Capture quality

Android supports two capture quality presets: Use the “low” setting when upload speed or server storage costs are a concern. Use “high” (the default) when image fidelity is important. For technical details on how these quality levels map to Android’s media capture API, see the Android Developer Documentation on EXTRA_VIDEO_QUALITY. Set capture quality via the Median JavaScript Bridge
By default, photos and videos captured in the app are saved to the device’s media gallery. You can disable this behavior if your app processes images server-side and local storage is unnecessary. This preference persists across sessions once set. Control gallery storage via the Median JavaScript Bridge

Demo app

Camera unavailable in the iOS simulatorDue to security policies, camera functionality is disabled in Median’s iOS simulator. The Android sample app includes an example camera capture.
Last modified on November 7, 2026