Fix Store update when uploading a file (Bug 19487) #162
Labels
bug
Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error
Milestone
[0] has been open and broken since 2009. The reason why the normal update hooks don't work is because there aren't executed in case of a file upload.
Investigate
UploadVerifyFile
(should be used as$mime
is delivered by the interface) [1] orUploadComplete
(doing$image->getLocalFile()->mime
doesn't really work) [2].Store update
Mime annotation
While resolving [0], the core should also add two new predefined properties
_MIME
and_MEDIA
and annotate those for uploaded files with something like:Reference
[0] https://bugzilla.wikimedia.org/show_bug.cgi?id=19487
[1] https://www.mediawiki.org/wiki/Manual:Hooks/UploadVerifyFile
[2] https://www.mediawiki.org/wiki/Manual:Hooks/UploadComplete
[3] https://gerrit.wikimedia.org/r/#/c/50943/
See also
#128
The text was updated successfully, but these errors were encountered: