Problem with input file and his own delete button

I am making a simple page with next-auth and mongodb,
On the dashboard page you can upload your profile photo. If you have a photo, you can click on delete, but then the file search pop-up appears. I do not want to do it.

you need to create a user to enter the dashboard page.

GitHub - LifeAsDev/next-js-mongodb-authentication!

Solved, the problem was that it was “deleting” the URL variable that saves the img and not the input file element that contains it

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.