Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMAPImportService - convert mime type for pdf files #147

Closed
rsoika opened this issue Feb 24, 2021 · 0 comments
Closed

IMAPImportService - convert mime type for pdf files #147

rsoika opened this issue Feb 24, 2021 · 0 comments
Milestone

Comments

@rsoika
Copy link
Member

rsoika commented Feb 24, 2021

During the extraction of file attachements of an email it can happen, that a attached PDF File (typically with upper case file extention) is not detected as PDF type.
The mime type in these cases is application/octet-stream

As a result the web application did not open these pdf files with the inline viewer.

We can fix this rare case if we test for mimetype = application/octet-stream and file extension PDF and convert the mime type to application/pdf

@rsoika rsoika added this to the 2.2.10 milestone Feb 24, 2021
rsoika added a commit that referenced this issue Feb 24, 2021
Issue #147
rsoika added a commit that referenced this issue Feb 24, 2021
Issue #147
@rsoika rsoika closed this as completed Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant