Skip to content

Conversation

jpmschuler
Copy link
Contributor

In case a file without extension is uploaded (e.g. a filename without a dot, like "pdf") an exception occurs, in all other cases a graceful false generates clear error messages. This simple fix should prevent the exception.

(The typical configuration for allowed file extensions in the form is ignored by some browsers, thus resulting in such files being selectable).

In case a file without extension is uploaded (e.g. a filename without a dot, like "pdf") an exception occurs, in all other cases a graceful false generates clear error messages. This simple fix should prevent the exception.
@jpmschuler jpmschuler changed the title [BUGFIX] file uploads without file extension might cause exception 12.x [BUGFIX] file uploads without file extension might cause exception Aug 15, 2025
@mschwemer mschwemer merged commit 4bf2920 into in2code-de:typo3-v12 Sep 5, 2025
7 of 9 checks passed
mschwemer added a commit that referenced this pull request Sep 5, 2025
(and update phpstan baseline with reduced errors)

Related: #1247
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants