> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating a file collection section

> Add a Pega file collection section with an AJAX Container bound to pyCaseAttachments so users can attach files to a FlexiCapture case in the flow action.

To create a file collection section, do the following:

1. In **Dev Studio**, click **Records → Process → Flow Action → Collect** and then click the configuration button.

   <Frame>
     <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega190.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=611b5e7f3f388204cfe12b3e022d1b9e" alt="Screenshot of Pega Dev Studio editing the Collect flow action on the Layout tab, with the section configuration button next to the Collect section highlighted." width="673" height="290" data-path="images/flexi-capture/connectors/Pega190.png" />
   </Frame>

2. On the **Design** tab, delete the default dynamic layout, add **Layout → AJAX Container**, and specify the following settings in the dialog box that opens:

   * **Default view** – *Section*
   * **Page context** – *Use other context*
   * **Section** – *pyCaseAttachment*s
   * **Context** – *Work-*

   <Frame>
     <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega191.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=95ac306c08e8b9daeb540a63de536ca1" alt="Screenshot of the Pega AJAX Container Settings dialog with Section selected as the Default view, pyCaseAttachments entered as the Section, and Work- entered as the Context." width="661" height="425" data-path="images/flexi-capture/connectors/Pega191.png" />
   </Frame>

3. Click **OK**. The **Design** tab should now look as follows:

<Frame>
  <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega192.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=d278483f9632742e545f0967d6eae1fa" alt="Screenshot of Pega Dev Studio showing the Collect section Design tab with an AJAX Container that includes the pyCaseAttachments section and pyAttachmentAddButton controls." width="1231" height="630" data-path="images/flexi-capture/connectors/Pega192.png" />
</Frame>
