You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I save a purchase invoice together with a document the document is correctly stored in the file system but the MIME type is not recognized correctly.
The text was updated successfully, but these errors were encountered:
I examined the problem and determined that the MIME type submitted by the browser is preferred. The MIME type check using Magic.getMagicMatch() is performed only if the browser doesn't supply a MIME type. It seems that some browsers don't submit valid types, e. g. most browsers on Windows submit text/html for all kind of files.
I fix issue #29 (Invalid MIME type at purchase invoice documents) by
using the MIME type from Magic.getMagicMatch() instead of the MIME type
submitted by the browser.
Furthermore, I write the Spock specification for it.
When I save a purchase invoice together with a document the document is correctly stored in the file system but the MIME type is not recognized correctly.
The text was updated successfully, but these errors were encountered: