Manual:refreshFileHeaders.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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