Summary:
If use file_destination - uploaded file not send
Detailed Description:
If use file_destination option - uploaded file save in this path, but for mail
it takes from current working directory.
my temp fix:
Index: modules/FormBuilder/classes/DispositionEmailBase.class.php
===================================================================
--- modules/FormBuilder/classes/DispositionEmailBase.class.php (date
1331895325000)
+++ modules/FormBuilder/classes/DispositionEmailBase.class.php (revision )
@@ -212,7 +212,8 @@
else if (strlen($thisAtt) > 0)
{ // Fix for Bug 4307
// If this doesn't break anything, we can merge it with the code above.
- $filepath = getcwd();
+ //$filepath = getcwd();
+ $filepath = rtrim($theFields[$i]->GetOption('file_destination'), '/') .
'/';
$filepath .= $thisAtt;
if (function_exists('finfo_open'))