Closed Bug 382161 Opened 17 years ago Closed 17 years ago

Can't upload PNG files with Special:Upload

Categories

(mozilla.org Graveyard :: Server Operations, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: benoit.leseul, Assigned: reed)

References

()

Details

I've tried several times today to upload a PNG file on the French MDC, but it didn't work. I got a message (in French) saying something like "This file is corrupt, has a null size or has an invalid extension. Please check the file."

I then tried with a smaller file, same result. On the English MDC, same result.

Eventually, I tried with the same image encoded in the GIF format, and it worked. 

If a new test on the file extension was added with the MediaWiki upgrade, maybe PNG has been forgotten in the process?
this bug causes critical problem on -ja,, please fix asap :p
of cource, we can upload via jpeg format, image quality will be decrease.. (for like captures of ui, transformed from -en version directry.)

with reading mediawiki source, problem might be caused with one of following mis-configulation.
1. misconfigulation on finfo : environment value MAGIC not point to valid data file
2. (might be ultla-c, and should not do) set $wgVerifyMimeType to false.

of cource other reasons may exist,, but i could not find.
Confirming, over to ops for help getting it resolved.
Assignee: nobody → server-ops
Component: Infrastructure → Server Operations
Product: Mozilla Developer Center → mozilla.org
QA Contact: infrastructure → justin
Version: unspecified → other
Assignee: server-ops → reed
OS: Windows XP → All
Hardware: PC → All
I think I fixed this, as I have been able to upload two .png files to MDC 'en'. Let me know if the problem occurs again.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
ok on -ja wiki, too.
thx.
I'm still having this problem, both on 'fr' and 'en'. Reopening this bug.

I hadn't tested since the fix, so I don't know if it has regressed or the problem lies in my account -- I see people have been able to upload PNG files as recently as june 29 in the 'en' upload log.
http://developer.mozilla.org/en/docs/index.php?title=Special%3ALog&type=upload
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
i couldn't upload .png in 'ja', neither..

so, it's something a regression. :)
I don't know if it's related, but I've checked the files on the 'en' upload log that have been uploaded since. The upload seems to have worked, but they aren't showing in the articles (their size is 0×0)

See for example http://developer.mozilla.org/en/docs/Image:buttons1.png -- it doesn't show on its image page nor in http://developer.mozilla.org/en/docs/XUL_Tutorial:Adding_Buttons#Some_examples_of_buttons even though the image is on the server: http://developer.mozilla.org/wiki-images/en/5/56/buttons1.png
Swapped it to use an external mime-type detector. Should be working now.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
i succeeded to upload in 'ja'
thx reed.
(In reply to comment #7)
> I don't know if it's related, but I've checked the files on the 'en' upload log
> that have been uploaded since. The upload seems to have worked, but they aren't
> showing in the articles (their size is 0×0)

I rebuilt the image metadata records for 'en', which seemed to fix this. If you're seeing it on other language codes, let me know.
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.