Open Natkeeran opened 3 years ago
This is due to us using the file_entity module. Specifying the mimetype in
https://localhost/admin/structure/file-types generally addresses this issue. However, the mime type that drupal assigns when uploading not always consistent with the commonly assigned mime type. In this case, for po files, adding application/octet-stream
resolves the issue.
In some cases, mapping the file extension to the mimetype using https://www.drupal.org/project/filemime is needed to resolve this issue as well.
We are using file entity module https://www.drupal.org/project/file_entity to store file level metadata. That introduced some issues related to identifying and mapping file Mimetypes. We resolved this by specifying appropriate file mimetypes at the file entity level and also by using the file mimetype module https://islandora.traefik.me/admin/config/media/filemime to map those not commonly found in Drupal like jp2 and warc.
When using file entity module, it often throws a file type plugin undefined issue. I.e when importing .po files.