Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Fits for Drupal

No security coverage Drupal 8–11
View on drupal.org

Introduction

This Drupal 8/9 module consumes File Information Tool Set (Fits) to retrieve and extract technical metadata for fieldable files.

Installation

By Composer (Highly recommend):
composer require 'drupal/fits:^1.1@alpha'

Manually Installation:

Configuration

  • Visit /admin/config/system/fits as screenshot below:

  • Visit /admin/structure/file-types, then click Edit in each File type for further detail and configure on Technical metadata fields.

  • To add more field(s) for extracting technical metadata, click + Add field button. Filling out all main fields.
    • In the Helper text field (screenshot below), make sure to enter one or multiple JMESPath(s) each wrapped between “[{ }]” (ie. [{fileinfo.md5checksum}]).
    • For further details about JMESPath, please visit: https://jmespath.org/tutorial.html

Usage

  • Upload a file at /file/add or add a Media at /media/add.
  • After a file uploaded completed, a job will be added to a queue which can be visited at admin/config/system/queues. Then, select List Jobs of the designated queue for Fits (select above) to monitor the progress.
  • To run the queues, there are 3 ways:
    • By Cron at admin/config/system/cron
    • By drush/drupal by drush advancedqueue:queue:process [{ queue name }] in terminal.
    • By Advanced Queue Runner
  • When a job is executed, there are 2 main operations:
    • Retrieve Fits: It will consume Fits XML to retrieve technical metadata in XML, then convert it to JSON and save it in the field_fits.
    • Extraction: After the technical metadata is saved in the json field field_fits, the extraction for each field based on JMESPaths which are defined in each Fits fields.
  • To check the outcome of the Fits metadata and extracted fields in a file, visit /file/[{ just uploaded File ID }]/edit

Depends on

Dependencies of the latest stable release

  • Advanced Queue
  • context Drupal core
  • field_permissions Drupal core
  • file_entity Drupal core
  • json_field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jun 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
8.x-1.12 Stable 8–11 Sep 12, 2024
8.x-1.1-alpha12 Pre-release 8–11 Sep 12, 2024
8.x-1.1-alpha11 Pre-release Jun 12, 2023