A file uploaded with a contact form submission, held against the contact request it came in with. The content itself lives in the hash store, so this row only records the hash which locates it, the filename to present it under and its media type. Deleting the row removes the record of the attachment, not the stored content.
Group: Database Entities
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| attachmentFilename | String | The filename to present the stored content under, since the hash store holds content without a name. This is normally the name of the file the visitor uploaded. |
| attachmentHash | String | The hash which locates the uploaded content in the hash store. This is how the file is fetched back, so an attachment without it has no retrievable content. |
| contactRequest | ContactRequest | The contact form submission this file was uploaded with. Never null, and loaded lazily so reading it may hit the database. |
| contentType | String | Media type of the uploaded file, as determined when it was received. Null when it was not recorded. |
| id | long | Database identifier for this attachment, assigned when the row is first saved. |
Methods
getId()
Returns: long
Database identifier for this attachment, assigned when the row is first saved.
getContactRequest()
Returns: ContactRequest
The contact form submission this file was uploaded with. Never null, and loaded lazily so reading it may hit the database.
getContentType()
Returns: String
Media type of the uploaded file, as determined when it was received. Null when it was not recorded.
getAttachmentHash()
Returns: String
The hash which locates the uploaded content in the hash store. This is how the file is fetched back, so an attachment without it has no retrievable content.
getAttachmentFilename()
Returns: String
The filename to present the stored content under, since the hash store holds content without a name. This is normally the name of the file the visitor uploaded.