Quote:
I see the original file is saved on the server. But still the medium image (that file is used when viewing images online) will be downloaded when you click "download original".
1) I've tested
Tom's solution and it seems to be working just fine, so I'll include it in the next update.
2) The issue what you have, is probably because you might not set the Permissions correctly.
There are two relevant permissions:
Can download pictures (needed to see the link to download)
Can download original pictures (needed for download of the original picture)
If you set only the first, user will have the download link visible, but be able to download only the "medium" picture. To download the original, the user needs both permissions set.
The bug was that if you uploaded a smaller picture than the default, it didn't set in the database the flag for "photo_havelarge".
Unfortunately, the original download routine was testing for this flag, and if the picture didn't have it, you would always get only the "medium" picture, even if you had permission to download original picture.
Tom's suggested fix solves the issue, i.e.:
a) if you have permission to original picture download, you'll get it, regardless of the size
b) if you don't have the permission, extGallery will check for the flag "photo_havelarge" and if set, it will get you the "large" picture, and if not, you'll get the "medium" picture.
So go ahead, use Tom's fix, set both the permissions, and then upload a small picture and see if it works.
And I'll commit the fix to SVN