Issue Bug Closed

#75395EXT:form – attachments from fileupload missing in mail because of isAllowedAbsPath

Benjamin Robinson 04/04/16, 16:08 updated 12/19/16, 13:28

Description

The attachments from fileupload fields are missing in the confirmation mail.

There’s a dirty workaround (related to a Strato webspace) at https://forum.typo3.org/index.php/t/203279/ which resolves this issue.
For Typo3 7.6.4 remove line 445 …

&& GeneralUtility::isAllowedAbsPath($file['tempFilename'])

I found out the the issue also occurs with webspaces of other providers, f.e. Mittwald, so I’m not sure if it’s a bug or the result of an unrecommended PHP-configuration.
If the cause is a special PHP configuration, I would suggest to create an additional Install Tool “System environment check” and bring out, that this configuration will cause trouble with attachments.

My test environment:
Blank new “Webhosting XL 9.0” package from Mittwald.
Template Setup:

page = PAGE
page.10 < styles.content.get

Include static (from extension)

CSS Styled Content (css_styled_content)
Default TS (form)

Form CE Configuration

enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 
postProcessor {
    1 = mail
    1 {
        recipientEmail = me@example.com
        senderEmail = noreply@example.com
    }
}
10 = TEXTLINE
10 {
    name = textfield
    label {
        value = Textfield
    }
}
20 = FILEUPLOAD
20 {
    name = fileupload
    label {
        value = Fileupload
    }
}
30 = SUBMIT
30 {
    name = 4
    value = Send
}

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.