Harness and Section forms - Adding an Attach Content control

The Attach content control ( pxAttachContent ) allows application users to attach files to a desktop or an offline-enabled application.

Users can add any number of files by using either the file browser or drag and drop functionality. You can customize this control to be displayed as a button, link, or icon.

Using this control at run time in a desktop application opens the default file browser window and users can attach files to their application.

On a mobile device, users can select content from the built-in image, video or audio gallery, as well as any type of an attachment from any other source that is available in the device's native file picker component. In addition, you can configure various compression parameters to limit the size of files created on a mobile device.

  1. Add a control from the Basic menu to a section or layout.

  2. Click the View properties icon for the control to open the Cell Properties window.

  3. Next to the control name, click Change and select Attachments .

  4. Optional: On the General tab, configure the following settings:
    • Display options for the control

    • Attachment compression parameters for mobile apps

  5. Click Submit to save the changes to the control.

The Attach content control is also supported in offline-enabled applications. For more information, see Attach content support in offline mode .

Note: For more information about the Attach content control, see How to use the Attach Content control on the Pega Community.