Page MenuHomePhabricator

No hooks for uploads
Closed, ResolvedPublic

Description

Author: bugzilla-wikimedia-org

Description:
I've created an extension to automatically create a redirect in the main namespace whenever a
category is created, to make it easier to find and link to them. I want to do the same for files,
but there are no hooks called, as far as I can tell, when uploading files.


Version: unspecified
Severity: enhancement

Details

Reference
bz3359

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:48 PM
bzimport set Reference to bz3359.
bzimport added a subscriber: Unknown Object (MLST).

The page creation hook is called on upload.

bugzilla-wikimedia-org wrote:

I can't see anything about page creation here:
http://meta.wikimedia.org/wiki/MediaWiki_Hooks_and_their_Parameters

Can you point me in the right direction?

bugzilla-wikimedia-org wrote:

I searched the files SpecialUpload.php, Article.php and Title.php and found nothing, then output every hook
called on upload to a file and found nothing useful.

Michael.Keppler wrote:

There is a hook called UploadVerification in SpecialUpload (CVS only).

robchur wrote:

There is now an UploadComplete hook in SVN trunk, r13623; backported to 1.6 and
1.5 branches.