Page MenuHomePhabricator

Upload new versions of files with different file type
Closed, ResolvedPublic

Description

Hello,

I have opened this bug to require the introduction of a new functionality to the software MediaWiki.

More specifically I would like it was possible the loading of a new version of a file, even if not having the same extension of the original.

Also I would ask you to kindly to ensure that all items bearing that specific file were changed automatically by the software in order to aim automatically to the new name of the file in question.

These my requests are due to the fact that very often it can happen to have to change suddenly extension to a file, but to do this we must necessarily load it with a new name, other than that which should be.

This is all. Of course I rest available for further clarification.

Thank you
Mattia


Version: unspecified
Severity: normal
URL: http://it.wikipedia.org/

Details

Reference
bz20971

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:46 PM
bzimport set Reference to bz20971.
bzimport added a subscriber: Unknown Object (MLST).

You should be able to work around this currently like this:

  1. Upload the new file with new extension
  2. Turn the old file into a redirect to the new one

(It _might_ be necessary to delete the old file in there too for the redirect to work, I don't recall exactly what reqs we put on those for now.)

Longer term, there's an idea to stop including the file extension in the on-wiki addressable name (splitting the raw filename from the on-wiki name, essentially) which this bug entry should either be duped to or set to depend on, but I can't find it at the moment.

(In reply to comment #1)

Longer term, there's an idea to stop including the file extension in the
on-wiki addressable name (splitting the raw filename from the on-wiki name,
essentially) which this bug entry should either be duped to or set to depend
on, but I can't find it at the moment.

That's bug 4421.

(In reply to comment #1)

Longer term, there's an idea to stop including the file extension in the
on-wiki addressable name (splitting the raw filename from the on-wiki name,
essentially) which this bug entry should either be duped to or set to depend
on, but I can't find it at the moment.

That bug was so that the File page contents (eg: licenses) could get index by the engines since some of them just forgot about it based on the web address extension.

This would break things, especially where we have two completely different images which have the same name.
For example on en.wikipedia [[File:Example.png]] and [[File:Example.svg]] (technically commons) which are designed differently because different formats support different things.

Bug 4421 as currently discussed wouldn't force changes to any existing files (but would allow them to be bulk-renamed to drop the extensions where there's not a conflict).

I decided to close this my bug because I consider my request already included in bug 4421. Thank you for the attention.

*** This bug has been marked as a duplicate of bug 4421 ***

Gilles raised the priority of this task from Low to Unbreak Now!.Dec 4 2014, 10:12 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Low.Dec 4 2014, 11:21 AM