Repository navigation
v12.36.0
The profile photo as a file.
KoolbaseUser.avatar(KoolbaseAvatarFile:bucket,path): where the photo is stored, when it is one of the user's files. Read it like any stored file -- in one of the project's image presets (getDownloadUrl(..., preset:),publicUrlFor(..., preset:)), and signed when the bucket is private. Kept with the persisted session.updateProfile(avatar:): sets the photo to a file the user uploaded -- the bucket and the path the upload returned. A file someone else uploaded is refused.avatarUrlthen follows it: a public bucket's permanent link, null for a private one.removeAvatar: trueremoves the photo. One ofavatar,avatarUrlorremoveAvatarat a time; settingavatarUrlstops the photo being a file.- Tested: read and kept, absent when there is none, what updateProfile sends.