Good afternoon. Can you please tell me how to delete an image from the database? I have a database of users with a certain attribute. They upload a photo and it enters the database in an image field. When a user wants to edit information, how can they delete that photo? Thanks
I am trying to do this by deleting the uploaded file, however nothing is happening
That’s exactly how you do it…
If nothing is happening then you need to find out why… the Debugger will be the easiest way to find that out (but more than likely you’ve made an error in the way you’re defining the image to delete).
Hi @bluesun440 , you can delete the image from database why making changes to the parent thing and add image filed there and keep that field blank.
See reference image here:
thanks for the answer. I do everything as you say, but again nothing happens. I don’t understand where am I making a mistake?
Are you uploading multiple images or single image?
And for image field type should be image not file.
It will be better if you share the editor link so that I can resolve your issue.
It worked! I was uploading files to a database field with the image type. I did everything as shown by you and it turned out. Thank you very much!