Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Configuring file size options for the Attach content control

Updated on April 5, 2022

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.

Note: Attaching large files might fail even if you select options other than Infinite to limit the size of attachments, when configuring video clip format and duration, or image size and quality. This might occur due to memory limitations of the device.
  1. In Dev Studio, open the section rule that has the Attach Content control, and click the View Properties icon.

  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Click Submit to save the changes to the control.

  • Previous topic Enabling attaching files to an application
  • Next topic Customizing how the Attach content control is displayed

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us