Hi,
how can I delete the file that was uploaded after sending the email? I saw in the FAQ that there is a way to delete old files via PHP (https://www.chronoengine.com/faqs/53-chronoforms/cfv4/cfv4-file-uploads/2665-how-can-i-delete-old-file-uploads) but I need a solution that deletes the file immediately after sending the email and it should only delete the file that was uploaded, not all other files in the upload folder.
I searched the forum but couldn't find a solution that works with ChronoForms v6.
JM
how can I delete the file that was uploaded after sending the email? I saw in the FAQ that there is a way to delete old files via PHP (https://www.chronoengine.com/faqs/53-chronoforms/cfv4/cfv4-file-uploads/2665-how-can-i-delete-old-file-uploads) but I need a solution that deletes the file immediately after sending the email and it should only delete the file that was uploaded, not all other files in the upload folder.
I searched the forum but couldn't find a solution that works with ChronoForms v6.
JM
Hi JM,
You can use a PHP action after the Email action to delete the file.
Bob
You can use a PHP action after the Email action to delete the file.
Bob
Hi Bob,
how do I get the file name? Of course I know the folder where the file is stored but the file name changes constantly.
JM
how do I get the file name? Of course I know the folder where the file is stored but the file name changes constantly.
JM
This topic is locked and no more replies can be posted.