Company | Newzulu Platform | Developer

Developer Template Documentation v4.12.5.106

Upload avatar


Upload avatar

/action/v2/uploadavatar

Allows the user to upload an image and set it as avatar

Requires a form token

Requires a session token - the user must be logged in

Supports redirectUrl param of fm:Form component

Example

<fm:Form action="/action/v2/uploadavatar" method="post" enctype="multipart/form-data" > <fm:Form_FileInput name="avatar" /> <fm:Form_Custom><button type="submit">Upload Avatar</button></fm:Form_Custom> </fm:Form>

Supported params

Name Required Description
avatar Required An image file, representing the user
<< 3.4.28 Unlink social connect 3.4.30 Update event >>