Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when sending forms with file upload #387

Open
katgirl opened this issue Dec 12, 2024 · 1 comment
Open

Error when sending forms with file upload #387

katgirl opened this issue Dec 12, 2024 · 1 comment

Comments

@katgirl
Copy link

katgirl commented Dec 12, 2024

Version 2.1 and Version 2.2

[2024-12-12T13:02:42.107613+01:00] contao.files.INFO: File "files/bewerbungen/Flyer_Asiatische_Hornissen_Aussehen_19.06.2024.pdf" has been uploaded [] {"contao":{"Contao\\CoreBundle\\Monolog\\ContaoContext":"{\"func\":\"Contao\\\\FormFileUpload::validate\",\"action\":\"FILES\",\"username\":\"anon.\",\"browser\":\"Mozilla\\/5.0 (X11; Linux x86_64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/131.0.0.0 Safari\\/537.36\"}"}}
[2024-12-12T13:02:42.330793+01:00] request.CRITICAL: Uncaught PHP Exception Twig\Error\SyntaxError: "Unknown "format_bytes" filter. Did you mean "format_args", "format_file"?" at /www/htdocs/abc/kunde.de/vendor/terminal42/notification_center/contao/templates/notification_center/file_token.html.twig line 4 {"exception":"[object] (Twig\\Error\\SyntaxError(code: 0): Unknown \"format_bytes\" filter. Did you mean \"format_args\", \"format_file\"? at /www/htdocs/abc/kunde.de/vendor/terminal42/notification_center/contao/templates/notification_center/file_token.html.twig:4)"} []

@Toflar
Copy link
Member

Toflar commented Dec 12, 2024

Looks like the format_bytes filter does not exist in Contao 4.13.

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

No branches or pull requests

2 participants