Skip to content
Go to platform

Last updated:

Media

The Media field lets a form user upload a predefined set of media files: photos, videos, and audio.

Property Value Description
Enabled True/False Whether image zooming is enabled.
Default zoom 100–5000 100 is the image’s actual size; each extra point is 1% bigger, so 5000 is 50x the original size.
Max zoom 100–5000 Same scale as Default zoom, capping how far a user can zoom in.
Property Value Description
Allow photo / video / audio True/False Whether that media type can be uploaded.
Maximum size 0–500 (MB) The maximum allowed file size.
Compress width / height 512–2147483647 The dimensions to compress uploaded images to.
Ratio 0×0–1000×1000 The aspect ratio to maintain, based on the original dimensions.

Allowed file types: photos: PNG, JPEG, JPG; videos: MP4; audio: MP3, WAV, AAC, ADTS, and audio-only MP4.

Message Meaning Solution
Media size cannot be more than {maximum size}MB The uploaded file exceeds the configured maximum size. Increase the maximum size, or ask the user to upload a smaller file.
This type of media is not allowed The uploaded file isn’t an allowed type. Ask the user to upload a supported file type.
  • If Allow photo is disabled, also disable image zooming: it has no effect otherwise.
  • Set a sensible maximum size, and matching compress width/height, based on the use case: large files slow the app down.