This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: mimetype default list make a wrong guess for illustrator file
Type: Stage:
Components: Versions: Python 3.10, Python 3.9, Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Inkhey
Priority: normal Keywords:

Created on 2021-03-18 15:49 by Inkhey, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg389023 - (view) Author: Guénaël Muller (Inkhey) Date: 2021-03-18 15:49
mimetypes lib consider illustrator file ('.ai') as 'application/postscript' type. This is correct... but also wrong.

Old illustrator file (illustrator 9) are real postscript file but modern one are technically pdf. So guessing .ai as postscript lead to wrong guessing if you're using some software that make decision based on mimetype, you can of course, check both file_extension and mimetype but this remove usefulness of mimetype.
Date User Action Args
2022-04-11 14:59:43adminsetgithub: 87710
2021-03-20 01:55:14terry.reedysetversions: - Python 3.6, Python 3.7
2021-03-18 15:49:43Inkheycreate