Skip to content

Adding possibility to add custom MimeTypeGuesser in configuration #28832

Closed
@ludovig

Description

@ludovig

Hello,

I'm currently working for a french retailer and we had an issue with some pdf uploads.
Those pdf (Orange invoices used as address proof), are recognized as application/octet-stream by file -b -mime and finfo_open.
So we used pdfinfo from popplers project to identify it as pdf.

However we have two problems with current implementation.

Do you have any idea on how to improve on this ?
Adding some configuration possibility was what we tought of, but maybe there is other ways to get a more optimal solution to get some generated pdf used as official document to be accepted as pdf.

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions