Page MenuHomePhabricator

No suggestions appear for files with bad file name.
Closed, ResolvedPublic

Description

Author: wikibugs

Description:
Steps to reproduce:

  1. Upload a file (say taken from a digital camera) with bad file name (e.g.P7260266)
  1. Go to the Describe page and notice that title has been set to the file name (P7260266)

There is no indication that title has been directly taken from file name (bad file name) and user has to change that.


Version: unspecified
Severity: enhancement
URL: http://commons.prototype.wikimedia.org/uwd/Special:UploadWizard

Details

Reference
bz26049

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:16 PM
bzimport added a project: UploadWizard.
bzimport set Reference to bz26049.
bzimport added a subscriber: Unknown Object (MLST).

I agree that bad filenames like these should be spotted and warned, but should that be core MW or an extension? Certainly this is something for the UploadWizard, though.

neilk wrote:

It should be a feature of core MW, but we are the only project so far that needs it.

Anyway, to my knowledge, the only way to really know whether a filename is acceptable or not is to actually try to publish a file with that name. (There are many different reasons why the server might reject it, and any number of extensions can use certain hooks. We can't simulate it on the client effectively.)

This is obviously unacceptable for us, especially since we are working on files that aren't published yet.

So we will need to write another API method, or, rewrite the appropriate extensions, to do this properly.

The main extensions I'm aware of are TitleBlacklist and TitleWhitelist.

This is resolved with the title blacklist API implementation.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:27 AM
Gilles added a project: Multimedia.
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:22 AM