mozilla / openbadges-badgekit

No Longer Maintained
https://badgekit.org
Mozilla Public License 2.0
123 stars 84 forks source link

Limit image file size to 256kb #461

Open ghost opened 10 years ago

ghost commented 10 years ago

This limits uploaded image file sizes to 256kb, as per the openbadges spec. As a pleasant side effect, it also resolves a database disconnect issue that was happening when someone attempted to upload an image over 2 megs.

I haven't added any additional copy to the Visuals tab stating this limit (I wasn't really sure where to put it without making it seem rather wordy/ugly), but if you attempt to upload an image that is too large, the error message "Maximum image size is 256 KB" will be displayed.

threeqube commented 10 years ago

:+1: sounds great. Thanks @christensenep!