File object

From Apibot
Jump to: navigation, search

This object represents a wiki file - image, video, sound etc.

It has properties matching the file properties that were fetched. Some properties of the file page might also be present - eg. title, pageid, lastrevid etc.

For a full list of the file properties, see the MediaWiki API documentation on the topic.

Apibot will also support in this object some extended properties. For example, the Assembly line Fetcher_Wiki_Filename is able to fetch also the file body, either as a string (the $body property), or in a temporary file on the disk (configured in the fetcher, and set to the $body_link property). It will also set the property $body_link_is_tempfile property to true.

See also