digitalutsc / islandora_lite_docs

Contains a Wiki with documentation for the UTSC Library's Islandora Lite System
GNU General Public License v3.0
2 stars 0 forks source link

Filetype undefined issue #37

Open Natkeeran opened 3 years ago

Natkeeran commented 3 years ago

When using file entity module, it often throws a file type plugin undefined issue. I.e when importing .po files.

Natkeeran commented 2 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.

kstapelfeldt commented 2 years ago

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.