# Issue with large attachments

**URL:** <https://community.exalate.com/t/issue-with-large-attachments/5300>\
**Category:** General Questions\
**Tags:** servicenow-jira, migrated\_question\
**Created:** [November 4, 2024, 7:56am UTC](https://community.exalate.com/t/issue-with-large-attachments/5300 "2024-11-04T07:56:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:56am UTC](https://community.exalate.com/t/issue-with-large-attachments/5300/1 "2024-11-04T07:56:32Z")

</div>

_Originally asked by George Smith on 23 September 2022 [(original question)](https://oldcommunity.exalate.com/questions/58494794)_

* * *

We currently have a lot of issues with large attachments being added to Jira and the sync subsequently failing because the attachments are too big for SN.

How can we prevent this issue from happening?

* * *

#### Comments:

> **Support commented on 23 September 2022**
>
> > Hi George,
> 
> You may want to stop large attachments from syncing over. We can easily do that by doing the following on the outgoing Jira side:
> 
> ```auto
> replica.attachments = issue.attachments.findAll {it.filesize <= 50000}
> 
> ```
> 
> _This line would not add any attachments to the replica which are greater than 50,000 bytes._
> 
> Feel free to contact us back if you have any further question
> 
> `Kind regards,`
> 
> `Harold Cruz`

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:56am UTC](https://community.exalate.com/t/issue-with-large-attachments/5300/2 "2024-11-04T07:56:33Z")

</div>

_Answer by Syed Majid Hassan on 24 September 2022_

George Smith please review this [post](https://community.exalate.com/display/exacom/questions/58491719/stop-large-attachments-from-syncing-jira-cloud---jira-server) for more details on the subject.

Hope it helps!

Thanks

Majid

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 6, 2024, 7:57am UTC](https://community.exalate.com/t/issue-with-large-attachments/5300/3 "2024-11-06T07:57:20Z")

</div>

Closed on November 6, 2024, 7:57am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
