Last modified: 2006-04-13 18:32:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5359, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3359 - No hooks for uploads
No hooks for uploads
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-04 15:09 UTC by Dave Miller (ProgMania)
Modified: 2006-04-13 18:32 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dave Miller (ProgMania) 2005-09-04 15:09:40 UTC
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.
Comment 1 Brion Vibber 2005-09-04 22:24:29 UTC
The page creation hook is called on upload.
Comment 2 Dave Miller (ProgMania) 2005-09-04 22:29:50 UTC
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?
Comment 3 Dave Miller (ProgMania) 2005-09-08 21:10:41 UTC
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.
Comment 4 Michael Keppler 2005-12-09 23:45:38 UTC
There is a hook called UploadVerification in SpecialUpload (CVS only).
Comment 5 Rob Church 2006-04-13 18:32:00 UTC
There is now an UploadComplete hook in SVN trunk, r13623; backported to 1.6 and
1.5 branches.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links