Topic: mdb-file upload - How to remove existing images on server

Maurizio Maimeri free asked 3 years ago


Hello, i'm using MDB-file upload plugin in edit mode, i.e. I want to give the possibility to the user to change or remove the existing images stored on the server.

I use the "data-default-file" to show the existing image but I want that, once I press the "delete" button, a special value, for example "deleted image", would be inserted in the relevant input value in order to execute a deleting procedure server-side when I submit the form (I make use of php as server-side language and I read the values of $_FILE[] variable)

Has anyone suggestions for this issue?

thanks a lot!


Arkadiusz Cacko staff commented 3 years ago

Hi @Maurizio Maimeri Please try this short example (first answer)https://stackoverflow.com/questions/15005899/delete-image-from-folder-php. I hope this helps, but please let me know if you need anything else. Regards Arek


Maurizio Maimeri free commented 3 years ago

Dear [@Arkadiusz Cacko thank you very much for your kind reply. I found it useful and also in other existing groups I found out something similar. I think that using the "hidden" input is the best solution to adopt!

Regards Maurizio



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.11
  • Device: PC
  • Browser: All
  • OS: all
  • Provided sample code: No
  • Provided link: No