_setImage
Last updated
Sets the photo for a User profile.
The id of the user.
The data of the inserted image.
The name of the image file.
FM_api(
'User_setImage',
['id' => '92568',
'Filedata' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==',
'filename' => 'red_dot.png'
]
);Occurs when you try to upload a file that's not an image, example used here is a text file named "test.txt".
Last updated
{"ok":1}{"error":"failed to create image. please check file and upload again"}