Thank you for the new version 2.8.0, appreciate you working on this so quickly!
I believe I have found a bug. My goal is to send individual attachments, unzipped and have the attachments deleted after a notification is successfully sent.
When Delete files after notification sent is checked and Zip uploads is unchecked, no attachments are sent.
Looking into it further:
If Zip uploads and Delete files after notification sent are checked a zipped file is sent.
If Zip uploads and “Delete files after notification sent” are unchecked, the individual files are attached to the notification.
So after quickly looking at the code I think the Delete files after notification sent is deleting the original attachments before they are sent when Zip uploads is unchecked.
An idea might be to separate the Delete files after notification sent into a different function using the hook add_action ‘gform_after_email’ and in that function using if( $is_success ) { then delete uploaded files, thumbnails and zip files if present }.
-
This reply was modified 7 years ago by mwolter.