Page MenuHomePhabricator

Separate or disallow extension changes from files names in moves
Open, Needs TriagePublicFeature

Description

This is a follow-up from a chat with DragonFlySixtySeven on IRC who suggested that there should be a way to prevent changing extensions accidentally when the user types the whole name such as (File selector) "Foobar,png" instead of "File:Foobar,png", to which MediaWiki throws an error because the extension change is disallowed.
My personal idea is to add another text field for the extension with the cursor being set to default to the page name.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
QEDK renamed this task from Separate or disallow extension from files names in moves to Separate or disallow extension changes from files names in moves.May 27 2020, 5:16 PM

Disabling extension changes entirely is probably a bad idea, as it would prevent normalizing .ogg to .oga/.ogv. Unless, of course, MediaWiki decided to strip extensions off and set them to standard values based on MIME type.