Manual:refreshFileHeaders.php

DetailsEdit

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

OptionsEdit

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

UsageEdit

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

Refreshing file metadataEdit

Terminal

Refreshing files' metadata with verboseEdit

Terminal

Refreshing only PNG files' metadataEdit

Terminal

See alsoEdit