Last modified: 2007-09-26 10:05:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10735 - Blacklist certain filename patterns
Blacklist certain filename patterns
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-29 02:47 UTC by Deyan Stoykov
Modified: 2007-09-26 10:05 UTC (History)
1 user (show)

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


Attachments

Description Deyan Stoykov 2007-07-29 02:47:59 UTC
Mediawiki should allow blacklisting certain filename patterns for new files being uploaded. Particularly, blocking the patterns used by certain camera/scanner models, such as (DSC_[0-9]{4}\.jpg), will prevent users from uploading images with camera-generated filenames and force them to rename the to-be-uploaded files to something more meaningful.
Comment 1 Danny B. 2007-07-29 03:14:31 UTC
You can use Javascript checking of the form and return some kind of notice saying something like "Please choose more descriptive name" when user clicks on upload button.

Also good upload manual on MediaWiki:Uploadtext can have preventive effect.
Comment 2 Danny B. 2007-07-29 10:52:20 UTC
Bug 709 (rename/move files) is related and once fixed, this one loses its sense.
Comment 3 Deyan Stoykov 2007-07-31 01:58:55 UTC
(In reply to comment #2)
> Bug 709 (rename/move files) is related and once fixed, this one loses its
> sense.

Not quite so, I think. Giving users a notice and forcing them to rename the file will habituate them to do it right in the future. Having someone else fix it will encourage them to do it wrong again next time.

Comment 4 Deyan Stoykov 2007-07-31 02:58:47 UTC
(In reply to comment #1)
> You can use Javascript checking of the form and return some kind of notice
> saying something like "Please choose more descriptive name" when user clicks on
> upload button.
Doing it on the client-side does have some advantages, although I was under the impression that MediaWiki struggles to keep the amount of js used at minimum. It might also be impossible to make it compatible with different skins.
 
> Also good upload manual on MediaWiki:Uploadtext can have preventive effect.
> 
On en.wikipedia.org it already says "Please choose a descriptive name for the destination filename in order to prevent duplicate names (for instance, "Cat.jpg" would not be a good name)". Doesn't help much - ignorant users just don't read. The "free images only" warning is even bigger, still masses of obvious copyvios get uploaded all the time.
Comment 5 Raimond Spekking 2007-09-26 10:05:01 UTC
This was done with r25620 and r25637 with a configurable blacklist: [[MediaWiki:Filename-prefix-blacklist]].

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


Navigation
Links