Inaccurate error message on first avatar upload
The error message a user receives when trying to upload an avatar to a web host with incorrect ownership permissions to the directory which hosts GNU Social is inaccurate. It states "Unsupported image format" (https://github.com/foocorp/gnu-social/blob/master/lib/imagefile.php:88).
The actual error is that GNU Social is unable to save the uploaded image data to disk. A better error would be "The administrator of your site needs to configure file uploads before you're able to set your avatar. Ping them at email@example.com to let them know you want this feature.
- Install GNU Social
- Log in
- Change the ownership of the directory it's living in
$ sudo chown -R jake gnusocial
- Attempt to upload your first avatar