# System.Threading.ThreadAbortException: Thread was being aborted. error on workflowfileupload element

**URL:** <https://discuss.workflowgen.com/t/system-threading-threadabortexception-thread-was-being-aborted-error-on-workflowfileupload-element/1736>\
**Category:** Visual Studio Web Forms\
**Created:** [December 18, 2020, 3:53pm UTC](https://discuss.workflowgen.com/t/system-threading-threadabortexception-thread-was-being-aborted-error-on-workflowfileupload-element/1736 "2020-12-18T15:53:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![remabd](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@remabd](https://discuss.workflowgen.com/u/remabd)\
**Post date:** [December 18, 2020, 3:53pm UTC](https://discuss.workflowgen.com/t/system-threading-threadabortexception-thread-was-being-aborted-error-on-workflowfileupload-element/1736/1 "2020-12-18T15:53:52Z")

</div>

Hi, we are getting an error when users click on an attached file using the `workflowfileupload` element.

Our code in the Default.aspx that shows the file upload is:

```
<%@ Register Assembly="WorkflowGen.My.Web.UI.WebControls" Namespace="WorkflowGen.My.Web.UI.WebControls" TagPrefix="cc1" %>

<cc1:workflowfileupload id="COMMITTEE_CHAIR_LETTER_OF_RESERVATIONS" runat="server" AddText="Attach" UpdateText="Modify"></cc1:workflowfileupload>

```

Here’s a screenshot of the error described:

 ![Screen Shot 2020-12-18 at 9.47.15 AM](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/3a0dca58fffe0f36d4403c7712b0c080bdd6671d.png)

Can you please provide guidance as to how to deal with this?
