Hi There,
Ik have a form for users to make an account. everything works fine, except for the image
the user is allowed to upload a profile picture that is stored as an name in the database and the image file is stored in an imagefolder on the server.
That also works.
on the oninit i use this code to choose a standard profile picture, if the user doesn’t upload one
{profiel_afbeelding} = (“profiel_brixx.png”);
that also works. But when the user decided to delete this file, al users with no profile picture have no standard picture.
I understand what is happening, so i decided to make this file read only in the folder, that doesn’t have any effect. the user is still allowed to delete the standard picture.
Any idea how i can use some code to stop this, and let users still choose a new picture, but doesn’t allow to delete the standard one?