Developer DemoTest camera and file upload functionality during development using the live demo pages.
- File and camera uploads: https://median.dev/camera/
- Android camera settings: https://median.dev/camera-settings
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
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