Configuring file size options for the Attach content control
To limit the size of files that the user attaches to a mobile app, for example to conserve bandwidth during synchronization, you can configure attachment compression parameters, such as video clip format, video clip duration, maximum image size, and maximum image quality.
Configuring attachment compression parameters can help you limit the size of files that are transferred between a mobile device and the server. Selecting the Infinite option means that files are attached in their original format or length, which results in increased data transfer. Smaller resolution, shorter times, and the lesser quality, all help reduce the size of the file, which results in decreased data transfer duration. The settings apply when a user records a new video or takes a new photo, but do not apply to pre-recorded media. Media files are compressed on the device before they are uploaded to the server.
In Dev Studio, open the section rule that has the Attach Content control, and click the View Properties icon.
In the Mobile app attachment compression section, in the Video max size field, select one of the following options:
- To upload the clip to its original resolution, select Infinite.
- To convert the clip to the 1080p format (1920 x 1080 pixels), select 1080p.
- To convert the clip to the 720p format (1280 x 720 pixels), select 720p.
- To convert the clip to the 540p format (960 x 540 pixels), select 540p.
In the Video max duration field, select one of the following options:
- To upload the clip to its original length, select Infinite.
- To crop the clip to 60 seconds, select 1 minute.
- To crop the clip to 30 seconds, select 30 seconds.
- To crops the clip to 10 seconds, select 10 seconds.
In the Image max diameter field, select one of the following options:
- To upload the clip to its original size, select Infinite.
- To resize the image proportionally so that its longer edge is no longer than 2560 pixels, select 2560px.
- To resize the image proportionally so that its longer edge is no longer than 1920 pixels, select 1920px.
- To resize the image proportionally so that its longer edge is no longer than 1080 pixels, select 1080px.
In the Image max quality field, select one of the following options:
- To upload the clip to its original quality, select Lossless.
- To compress the image by using the 90 percent quality level, select High.
- To compress the image by using the 50 percent quality level, select Medium.
- To compress the image by using the 20 percent quality level, select Low.
Click Submit to save the changes to the control.
- Attach Content control
Enable application users to attach files to a desktop, mobile, or an offline-enabled application by adding the Attach content control (pxAttachContent).
- Customizing how the Attach content control is displayed
After you configure a control in a section or a layout to support attaching content, you can customize how the control is displayed to application users.
Previous topic Enabling attaching files to an application Next topic Customizing how the Attach content control is displayed