Page MenuHomePhabricator

When SVG file is broken, warn about that, instead of mime failure.
Open, MediumPublic

Description

To quote a user;

I tried to upload a SVG file with 2 accidental errors which both make uploading the image fail: missing xmlns="..."

what bothered me was the error message: "File extension does not match MIME type." This is just uninformative and unhelpful. Could it be improved?

The user is right, I should get it to return a more useful error than that. We probably have to separate the mime checking, from the file validation error responses. We do both now in mimemagic, but the error messages only really account for MIME matching.


Version: 1.18.x
Severity: normal

Details

Reference
bz27537

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:22 PM
bzimport set Reference to bz27537.
bzimport added a subscriber: Unknown Object (MLST).
TheDJ created this task.Feb 18 2011, 3:11 PM

Thehelpfulonewiki wrote:

Reassigning to wikibugs-l per bug 37789

Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:33 PM
Restricted Application added subscribers: Steinsplitter, Matanya, Aklapper. · View Herald TranscriptSep 4 2015, 6:33 PM