HTML5 File Upload Support Product Page

Answered

Deleting record and related file

Asked 09 Oct 2016 14:40:27
2
have this question
09 Oct 2016 14:40:27 Jacques H posted:
I have records with text and files. I want to delete the file when deleting the record, but I can't get it done. The record will delete, but not the file. Is there a tutorial for this or can someone help me out?

Replies

Replied 11 Oct 2016 14:35:40
11 Oct 2016 14:35:40 Teodor Kuduschiev replied:
Hello,
It is the same as updating records/file - www.dmxzone.com/go/32399/deleting-files-when-updating-database-records/ but instead of update step, just use delete.
Replied 15 Nov 2016 14:57:40
15 Nov 2016 14:57:40 Greta Garberini replied:
No idea how to do this after the tutorial you are pointing at. There are conditions, upload file steps and so on.

Similar how Jaques H describes it, I have a page with a list of files, after having been selected by clients. This works fine.
There is an option in a dynamic repeated table and a button which I would like to use to delete the file AND the database entry. Can I use the action file which I use for the query (list) of files or do I need to setup an extra one?
Replied 15 Nov 2016 15:15:17
15 Nov 2016 15:15:17 Teodor Kuduschiev replied:
Hello Greta,
The logic is the same as in this video: www.dmxzone.com/go/32394/deleting-folders-when-deleting-database-records
Instead of using delete folder, use delete file.
Replied 15 Nov 2016 16:00:09
15 Nov 2016 16:00:09 Greta Garberini replied:
Oh, OK,
thanks. You really did a great job with this extension. The combined delete function for database AND file (even folder) is just first rank!

Reply to this topic