avatar exactly 100x100px and 4kb fails to upload

Bug #677636 reported by Riki
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
community.linuxmint.com
New
Undecided
Unassigned

Bug Description

My avatar will not upload from home folder. It is 100x100px and 4kb.

Tags: avatar
Revision history for this message
Riki (enrikapp) wrote :

In my case, the problem was that the extension of the jpeg image was in capital letters i.e. .JPG. I renamed it to .jpg and I can now upload my avatar. Hope this helps somebody.

Revision history for this message
jkw (jkw) wrote :

I have no idea how the code is written, but it's better to check for mime-type rather than file extension. You can create a gif-file but name it 'test.png'. It's still a .gif-file even though the extension "tells you" it's a gif-file.

I don't know which language the site is written in, but in php it's quite simple to check with fileinfo().

tags: added: avatar
Revision history for this message
kabads (adamc) wrote :

I can confirm that the .JPG file extension rejects the upload - I've raised a bug about this, as it shouldn't really matter what the extension is for this image.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.