WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-614e93-12.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 103817 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: mdb-file upload - How to remove existing images on server
Maurizio Maimeri
asked 6 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!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- 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
Arkadiusz Cacko commented 6 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 commented 6 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