Hi,
I like to delete all uploads after the mail has been sent. Don't need them anymore and I don't have the webspace to keep all those uploads.
Obvious choice is to use the "On Submit code - after sending email:" code block, but the problem is that you really don't know which files to delete. If 2 persons are submitting a form at the same time, I might be deleting uploads which were not sent yet.
While looking for an fix, I opened the chronoformuploads.php file in the library map and found the nice looking function deleteUploads().
But putting that in the code block mentioned above didn't work...
Any suggestions how to do this?
I like to delete all uploads after the mail has been sent. Don't need them anymore and I don't have the webspace to keep all those uploads.
Obvious choice is to use the "On Submit code - after sending email:" code block, but the problem is that you really don't know which files to delete. If 2 persons are submitting a form at the same time, I might be deleting uploads which were not sent yet.
While looking for an fix, I opened the chronoformuploads.php file in the library map and found the nice looking function deleteUploads().
<? CFUploads::deleteUploads(); ?>
But putting that in the code block mentioned above didn't work...
Any suggestions how to do this?