Extension:SocialProfile/API/Avatar upload

Since late May 2024 (6acb1e7956ae33dbcb45928b14b888d72efe2d5e), SocialProfile has included an api.php module for uploading a new avatar, as well as a corresponding api.php module for removing an avatar. These modules are essentially the api.php versions of the pre-existing Special:UploadAvatar and Special:RemoveAvatar pages.

This API module allows to upload a new avatar, either from a locally stored file or from a remote URL, provided that the current user has the upload_by_url user right.

See also API:Upload, the core uploading API module, on which this is based.

Parameters
  • file: The locally stored avatar file to upload.
  • url: Fully qualified URL to an online image to upload as an avatar, if the user has the upload_by_url user right.