How do u change your Avatar

I want to and an avatar picture, it tells me "upload of file failed." ?