# Attachment Plugin not working with defined Attachment Forms

**URL:** <https://speciforum.org/t/attachment-plugin-not-working-with-defined-attachment-forms/2466>\
**Category:** Get Help\
**Created:** [April 3, 2025, 5:31am UTC](https://speciforum.org/t/attachment-plugin-not-working-with-defined-attachment-forms/2466 "2025-04-03T05:31:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [November 12, 2025, 10:15pm UTC](https://speciforum.org/t/attachment-plugin-not-working-with-defined-attachment-forms/2466/3 "2025-11-12T22:15:34Z")

</div>

Hi @leobrimblecombe,

I sincerely apologize for the late response. I’m not sure how this fell off our radar, so I really appreciate you responding this week!

Can you share a [copy of your database](https://speciforum.org/t/send-a-backup-to-specify/767) with me? We can take a look and see why you are experiencing the behavior you have described! Note that support for Specify 6 is limited, and the following explanation applies solely to Specify 7:

* * *

To give some more context, Specify will **only** look at the `ObjectAttachment` view definition when viewing an attachment from Gift, Loan, Permit, Preparation, Locality, Reference Work, Storage, Taxon, etc. as listed below.

If you are looking at a Collection Object’s attachment, it uses the `CollectionObjectAttachment` view definition.

If you are looking at the Attachment form directly (not via a link between a base record (e.g. Collection Object)), it uses the `AttachmentsForm` view definition.

At the moment, `ObjectAttachment` cannot be edited using the visual form editor, but that will be fixed in the `v7.12.0` release of Specify which is coming soon. You can still edit this via XML directly.

From [Editing Forms in Specify](https://speciforum.org/t/editing-forms-in-specify/1557#p-2936-view-definition-names-55) -

> ## View Definition Names
> 
> In most cases, the table has the same view name as its default view (e.g. Collection Object will display the view definition named `CollectionObject`, Accession will display `Accession`, and Collecting Event will display `CollectingEvent`).

If you are showing a subview like `attachmentImageAttribute`, you can explicitly reference the `AttachmentImageAttributeBRI` view definition like so on the `ObjectAttachment` view definition:

```xml
<row>
    <cell type="subview" id="imageatt" viewname="AttachmentImageAttributeBRI" name="attachment.attachmentImageAttribute" colspan="3" />
</row>

```

> Some tables use a **special name** for the view definition that is not always the same as the name of the table. The **entire list** of such cases are included below:
> 
> | Table Name | Default View Name |
> | --- | --- |
> | Attachment | `AttachmentsForm` |
> | Collecting Trip | `CollectingTripForm` |
> | Journal | `JournalForm` |
> | Other Identifier | `OtherIdentifiers` |
> | FieldNotebookAttachment | `ObjectAttachment` |
> | FieldNotebookPageSet | `ObjectAttachment` |
> | FieldNotebookPageSetAttachment | `ObjectAttachment` |
> | GiftAttachment | `ObjectAttachment` |
> | LoanAttachment | `ObjectAttachment` |
> | PermitAttachment | `ObjectAttachment` |
> | PreparationAttachment | `ObjectAttachment` |
> | LocalityAttachment | `ObjectAttachment` |
> | ReferenceWorkAttachment | `ObjectAttachment` |
> | RepositoryAgreementAttachment | `ObjectAttachment` |
> | StorageAttachment | `ObjectAttachment` |
> | TaxonAttachment | `ObjectAttachment` |
> | TreatmentEventAttachment | `ObjectAttachment` |
> 
> _Source Code:_ [Specify Data Model](https://github.com/specify/specify7/blob/e78d4c6f1a18be74ccc1fbba2f0f4b7ae1ac5066/specifyweb/specify/datamodel.py#L4371)

---

_[View the full topic](https://speciforum.org/t/attachment-plugin-not-working-with-defined-attachment-forms/2466)._
