[TASK] EXT:form - Optimize file upload/ handling of files
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Classes / PostProcess / MailPostProcessor.php
index c704b4a..00a2950 100644 (file)
@@ -425,7 +425,7 @@ class MailPostProcessor extends AbstractPostProcessor implements PostProcessorIn
                                                                is_file($file['tempFilename'])
                                                                && GeneralUtility::isAllowedAbsPath($file['tempFilename'])
                                                        ) {
-                                                               $this->mailMessage->attach(\Swift_Attachment::fromPath($file['tempFilename'])->setFilename($file['originalFilename']));
+                                                               $this->mailMessage->attach(\Swift_Attachment::fromPath($file['tempFilename'])->setFilename($file['name']));
                                                        }
                                                }
                                        }