Skip to content

Add check for pdf mime type before rendering preview citation#27

Open
wr1r25 wants to merge 1 commit into
mainfrom
issue-367-document-preview-fixes
Open

Add check for pdf mime type before rendering preview citation#27
wr1r25 wants to merge 1 commit into
mainfrom
issue-367-document-preview-fixes

Conversation

@wr1r25
Copy link
Copy Markdown
Contributor

@wr1r25 wr1r25 commented May 19, 2026

Fixes eprints/eprints3.5#367 Adds a check for mime type before showing the pdf viewer, to ensure the document is a pdf

Copy link
Copy Markdown
Contributor

@drn05r drn05r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes the format field option list get changed so some PDFs are not set as text, so probably just worth checking the mime_type and not to bother with checking the format field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document preview breaks for word documents

3 participants