Page MenuHomePhabricator

Make it easier to manage/deliver files created by extensions
Open, LowPublic

Description

Problem

There are some extensions (e.g. Extension:Math) that create files dynamically and then deliver those files to the user. Most extensions just create their files somewhere in $wgUploadDirectory, assuming that the location is accessible from the web. On private wikis this might not be true. Instead of direct delivery by the webserver the img_auth.php might be invoked. Unfortunately the current implementation sometimes makes it difficult or impossible to deliver files that are not part of the local filerepo.

Who would benefit

Any extension developer that wants to create files (images, pdfs, JNLP, xml, flat files, ...) dynamically and deliver them by a script entry point.

Proposed solution

  • img_auth.php could be improved (see also T153174)
  • A complete new entry point could be created
  • Some mechanism besides filerepo/filebackend could be created that allows better management (save/cache, delete/invalidate, find) of files created by extensions

Event Timeline

Osnard created this task.Jan 25 2017, 9:21 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 25 2017, 9:21 AM
Restricted Application added projects: Multimedia, Commons. · View Herald TranscriptJan 27 2017, 3:24 PM
zhuyifei1999 added a subscriber: zhuyifei1999.

This proposal is selected for the Developer-Wishlist voting round and will be added to a MediaWiki page very soon. To the subscribers, or proposer of this task: please help modify the task description: add a brief summary (10-12 lines) of the problem that this proposal raises, topics discussed in the comments, and a proposed solution (if there is any yet). Remember to add a header with a title "Description," to your content. Please do so before February 5th, 12:00 pm UTC.

MarkTraceur triaged this task as Low priority.Jul 10 2017, 3:13 PM
MarkTraceur moved this task from Untriaged to Triaged on the Multimedia board.