Manual:refreshFileHeaders.php

From Linux Web Expert

Revision as of 18:10, 27 January 2024 by imported>Shirayuki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Details

refreshFileHeaders.php file is a maintenance script to refresh file headers from metadata.

Options

Option Description Required
--verbose Output information about each file <translate> Optional</translate>
--start Name of file to start with <translate> Optional</translate>
--end Name of file to end with <translate> Optional</translate>
--media_type Media type to filter for <translate> Optional</translate>
--major_mime Major MIME type to filter for <translate> Optional</translate>
--minor_mime Minor MIME type to filter for <translate> Optional</translate>
--refreshContentType Set to true to refresh file content type from mime data in database <translate> Optional</translate>

Usage

php maintenance/refreshFileHeaders.php [ --start| --end| --major_mime| --media_type| --minor_mime| --refreshContentType| --verbose ]

Refreshing file metadata

Terminal

Refreshing files' metadata with verbose

Terminal

Refreshing only PNG files' metadata

Terminal

See also