Diviner

Function upload_avatar()

Definedinc/functions_upload.php:185

array upload_avatar($avatar = array(), $uid = 0)

parameterssrray$avatarincoming FILE array, if we have one - otherwise takes $_FILES['avatarupload']
string$uidUser ID this avatar is being uploaded for, if not the current user
returnarrayArray of errors if any, otherwise filename of successful.

Upload a new avatar in to the file system