Copy link to clipboard
Copied
hi,
I have a form where the user can change or add his avatar, i'd like to know what's the best way to allow image's upload (with a max size) and rename this image, something like ('username'.jpeg). this new image would replace the previous one. only one image per user. and if this user haven't upload image, a 'default.jpeg' would apear on his profile...
Any good solution or help for this problem??
Cheers
Tim
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Are u using PHP? If you want to replace the old image with the new one, u can use the unlink() function. This will delete the old image in the directory and replace it with the new image that u have just upload.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more