Resolved an issue where the document viewer displayed the same file repeatedly, showed some attachments only as thumbnails, or failed to display others entirely. All attachments are now displayed correctly in their original format and are fully accessible to the end user.