Hi,
I have an admin area in my project that only the user who has admin privilege can access this page and edit site’s contents. One of those editing options is file delete option. An admin can see all the uploaded images as thumbnail and click on three dots above each of them and click on delete to delete it. I want to pass file name to a controller called delete.php. How can I find the file name associated to that specific image?
I load my thumbnails to admin page (image gallery project) by this code:
<div class="card-body">
<div class="row"><img style="max-width: 100%;" src="<?php echo $root ?>/public/assets/uploadThumb/<?php echo $myrow['thumb'] ?>"></div>
</div>