Skip to content

Commit

Permalink
fix issue when form submitted, an uploaded file creates an error when…
Browse files Browse the repository at this point in the history
… attaching to the response email
  • Loading branch information
dleffler committed Jan 4, 2017
1 parent ccb3c36 commit cd1bddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/modules/forms/controllers/formsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ public function submit_data() {
// $finfo = finfo_open(FILEINFO_MIME_TYPE);
// $ftype = finfo_file($finfo, $relpath . $attachment);
// finfo_close($finfo);
$mail->attach_file_on_disk(BASE . $attachment, expFile::getMimeType($attachment));
$mail->attach_file_on_disk(BASE . $attachment, expFile::getMimeType(BASE . $attachment));
}
}
}
Expand Down

0 comments on commit cd1bddb

Please sign in to comment.