1 year ago

Deleting/Updating a file already present on the database

Posted 1 year ago by ravipw1801

Building a laravel app, User can create multiple post & can upload only 1 image. In case he wishes to update later, he can do it easily, but if in case he completely wants to remove it, how this will take place?


As you can see in the screenshot, It has a remove icon, but how to ACTUALLY remove the image? and replace it with default image like 'no-image.jpg'?

Please sign in or create an account to participate in this conversation.