ApiQueryNewFiles class which provides this functionality (created under MW1.19)
A new API query module which provides the functionality of Special:NewFiles would be extremely useful for scripts which could provide an interface to easily select a recently upload file for inserting in the page, specially if it's also able to filter by the user who uploaded them.
And maybe create custom atom/rss feeds for recent uploaded files.
There's no functionality for this in the current API modules:
- list=allimages lists images in alphabetically order.
- list=logevents&leaction=upload gives not-usable results when files are deleted or moved
I've taken the effort to create the API Class that provides this functionality by myself. I'm sorry for not being able to provide it in a "patch" format, but it should be easy to integrate it in the MediaWiki code.
Including it as an extension only required me those 2 lines (apart from copying the attached file to the current installation directory):
$wgAutoloadClasses['ApiQueryNewFiles'] = dirname( FILE ) . '/ApiQueryNewFiles.php';
$wgAPIListModules['newfiles'] = 'ApiQueryNewFiles';
Version: unspecified
Severity: enhancement
Attached: