# Attachments icon record set

**URL:** <https://speciforum.org/t/attachments-icon-record-set/1505>\
**Category:** Get Help\
**Created:** [January 20, 2024, 2:48pm UTC](https://speciforum.org/t/attachments-icon-record-set/1505 "2024-01-20T14:48:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sorosoro](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sorosoro](https://speciforum.org/u/sorosoro)\
**Post date:** [January 20, 2024, 2:48pm UTC](https://speciforum.org/t/attachments-icon-record-set/1505/1 "2024-01-20T14:48:24Z")

</div>

Hi. I just noticed the little attachment icon at the top of the Collection Object form, next to the Specify network icons. It seems to open the attachments of the record set in a new navigable screen. If that is what it does, cool! This is great!!

However, I tried this functionality with a record set that has over 2000 attachments and it is showing only 40:

 ![recordset_attachments](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/6/60e47c3d126b581221193d088ab47e5d4b9da129.jpeg)

Why may that be?

Thanks

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [January 22, 2024, 5:01pm UTC](https://speciforum.org/t/attachments-icon-record-set/1505/2 "2024-01-22T17:01:14Z")

</div>

Hi @sorosoro,

I think you may have found a bug caused by incomplete loading of attachments. Specify loads items in groups of 40 traditionally in query results, and this limitation may be preventing Specify from fetching all available attachments in the record set.

I was able to recreate a similar issue and I wrote up the issue on GitHub:

> <https://github.com/specify/specify7/issues/4445>
>
> \*\*Describe the bug\*\*
> When you click on the attachment viewer icon (top right of… form, to the left of the Specify Network icons), only a subset of the total number of attachments are shown.
> 
> While every record in a record set might have an attachment, only a small number of the total are shown when clicking on the button. I could
> 
> \*\*To Reproduce\*\*
> Steps to reproduce the behavior:
> 1. Go to this record set (https://sp7demofish.specifycloud.org/specify/view/collectionobject/16/?recordsetid=42)
> 2. Click on the 'Attachments' icon
> See that it shows \*\*61 attachments\*\*
> 4. Skip to the end of the record set (record 903 in the set)
> 5. Click on the 'Attachments' icon
> See that it shows \*\*62 attachments\*\*
> 6. Go to record 415 
> 7. Click on the 'Attachments' icon
> See that it shows \*\*124 attachments\*\*
> 
> \*\*Expected behavior\*\*
> \_All\_ attachments should be loaded in immediately, as that is the purpose of this button and viewer.
> 
> \*\*Screen Recording\*\*
> 
> https://github.com/specify/specify7/assets/37256050/6f253b56-00ad-41cf-8fa6-63c7cd0137aa
> 
> 
> 
> \*\*Desktop:\*\*
> macOS, Arc

When you move to later items in the record set, are more attachments loaded?

Thank you!

---

<div class="post-metadata">

**Author:** ![sorosoro](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sorosoro](https://speciforum.org/u/sorosoro)\
**Post date:** [January 24, 2024, 7:52am UTC](https://speciforum.org/t/attachments-icon-record-set/1505/3 "2024-01-24T07:52:43Z")

</div>

Hi, and thanks for the reply.

> [@Grant](#):
>
> When you move to later items in the record set, are more attachments loaded?

No, the number of attachments remains the same, and clicking on the navigation arrow of the last item closes the attachment window and goes back to the thumbnails in the viewer.

But today I am getting stranger results. The number of attachments loaded in the attachment viewer changes with the query. It loads mostly 80, but also loaded 120, 360 and 442 attachments. The number loaded seems to somehow depend on the query but it’s not related to the total number of attachments retrieved in the query.

Let me know if you would like to see screenshots of what I am describing.

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [January 25, 2024, 3:05pm UTC](https://speciforum.org/t/attachments-icon-record-set/1505/4 "2024-01-25T15:05:33Z")

</div>

Our team is currently working on identifying the issue. Thank you for providing additional details!
