Upload avatar

Upload avatar


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


<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