# File upload

**URL:** <https://forums.pega.com/t/file-upload/2566>\
**Category:** User Experience\
**Tags:** insurance, 8-1-5, dev-designer-studio, user-experience, senior-system-architect, case-management\
**Created:** [May 10, 2022, 3:24pm UTC](https://forums.pega.com/t/file-upload/2566 "2022-05-10T15:24:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaciejHalas](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/maciejhalas/32/6654_2.png) [@MaciejHalas](https://forums.pega.com/u/MaciejHalas)\
**Post date:** [May 10, 2022, 3:24pm UTC](https://forums.pega.com/t/file-upload/2566/1 "2022-05-10T15:24:59Z")

</div>

I need to upload files from a portal. I try to use Pega pyAttachmentScreen section for it. I initialize it first with pzInitAttachContent activity. After file uploading I take file content from dragDropFileUpload.pxResults page.

It works quite well when I use drag & drop utility on this section.

But when I use the button to select my file I usually get an error message like this: “pxAttachName: (Data-WorkAttach-File)pxFileNotFound ImgTest.gif”. Sometimes it works with no error.

The same error is when I use pzBrowseAttachments section.

Can it work well? Maybe I need some more initialization, or there is another way of file loading?

 ![UploadTest.png](https://pega1.discourse-cdn.com/pega/original/2X/a/adb26f96ded8255311a65b44bd5c610f328f374c.png)

---

<div class="post-metadata">

**Author:** ![MaciejHalas](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/maciejhalas/32/6654_2.png) [@MaciejHalas](https://forums.pega.com/u/MaciejHalas)\
**Post date:** [May 12, 2022, 8:11am UTC](https://forums.pega.com/t/file-upload/2566/2 "2022-05-12T08:11:51Z")

</div>

@MaciejH5

The problem has been resolved. After selecting “Work area” check box on Advanced tab in the harness definition as it is shown on attached picture it works perfectly.

 ![Harness.png](https://pega1.discourse-cdn.com/pega/original/1X/f5ef3e1f52bc563f086629eb912e30a15f0583bd.png)
