Don't show the upload option if max_attachment_size_kb is 0.
Don't show the upload avatar modal is allow_uploaded_avatars is false.
Merge pull request #1723 from vikhyat/disable-uploads

Don't show uploading forms if the relevant site settings are disabled