Page MenuHomePhabricator

CSV files cannot be uploaded due to MIME type mismatch
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
The upload failed with the following message:

File extension ".csv" does not match the detected MIME type of the file (application/csv).

What should have happened instead?:

The file should have been uploaded successfully to the target title.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Server information: Prime-Wiki version page - MW 1.31.1, PHP 8.0.17

Client information: Firefox 98.0.2, Kubuntu 20.04 (also tested by me on Chromium 99, same OS, and by the wiki admin, unknown OS and browser; both resulted in the same error)

The wiki admin informed me in this forum post that he had successfully fixed the issue by modifying the MediaWiki source, and I confirm that the fix did resolve the issue on that wiki. I presume the fix went in this file, but I didn't ask him.

Related Objects

Event Timeline

Change #1039846 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/core@master] mime: Add common aliases for CSV

https://gerrit.wikimedia.org/r/1039846

Change #1039846 merged by jenkins-bot:

[mediawiki/core@master] mime: Add common aliases for CSV

https://gerrit.wikimedia.org/r/1039846