Skip to content

Commit c139db4

Browse files
committed
[BUGFIX] Fix file upload in v12
Fixes: #38 Fixes: #34 (cherry picked from commit 1947a4b)
1 parent 421af3a commit c139db4

2 files changed

Lines changed: 12 additions & 20 deletions

File tree

Classes/Controller/JobController.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -537,14 +537,6 @@ public function newApplicationAction(Job $job, Application $newApplication = nul
537537

538538
public function initializeCreateApplicationAction(): void
539539
{
540-
// Since TYPO3 v12, application is placed on root-level instead inside newApplication.
541-
if ((new Typo3Version())->getMajorVersion() > 11) {
542-
$arguments = $this->request->getArguments();
543-
$arguments['newApplication']['attachment'] = $arguments['attachment'];
544-
unset($arguments['attachment']);
545-
$request = $this->request->withArguments($arguments);
546-
$this->request = $request;
547-
}
548540
$this->setTypeConverterConfigurationForImageUpload('newApplication');
549541
}
550542

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
}
2424
],
2525
"require": {
26-
"typo3/cms-core": "^11.5.3 || ^12.4",
27-
"typo3/cms-backend": "^11.5.3 || ^12.4",
28-
"typo3/cms-extbase": "^11.5.3 || ^12.4",
29-
"typo3/cms-fluid": "^11.5.3 || ^12.4",
30-
"typo3/cms-frontend": "^11.5.3 || ^12.4"
26+
"typo3/cms-core": "^11.5.3 || ^12.4.28",
27+
"typo3/cms-backend": "^11.5.3 || ^12.4.28",
28+
"typo3/cms-extbase": "^11.5.3 || ^12.4.28",
29+
"typo3/cms-fluid": "^11.5.3 || ^12.4.28",
30+
"typo3/cms-frontend": "^11.5.3 || ^12.4.28"
3131
},
3232
"extra": {
3333
"typo3/cms": {
@@ -43,13 +43,13 @@
4343
"require-dev": {
4444
"friendsofphp/php-cs-fixer": "^3",
4545
"ssch/typo3-rector": "^1.3",
46-
"typo3/cms-extensionmanager": "^11.5.3 || ^12.4",
47-
"typo3/cms-felogin": "^11.5.3 || ^12.4",
48-
"typo3/cms-filelist": "^11.5.3 || ^12.4",
49-
"typo3/cms-fluid-styled-content": "^11.5.3 || ^12.4",
50-
"typo3/cms-install": "^11.5.3 || ^12.4",
51-
"typo3/cms-lowlevel": "^11.5.3 || ^12.4",
52-
"typo3/cms-tstemplate": "^11.5.3 || ^12.4"
46+
"typo3/cms-extensionmanager": "^11.5.3 || ^12.4.28",
47+
"typo3/cms-felogin": "^11.5.3 || ^12.4.28",
48+
"typo3/cms-filelist": "^11.5.3 || ^12.4.28",
49+
"typo3/cms-fluid-styled-content": "^11.5.3 || ^12.4.28",
50+
"typo3/cms-install": "^11.5.3 || ^12.4.28",
51+
"typo3/cms-lowlevel": "^11.5.3 || ^12.4.28",
52+
"typo3/cms-tstemplate": "^11.5.3 || ^12.4.28"
5353
},
5454
"scripts": {
5555
"pre-autoload-dump": [

0 commit comments

Comments
 (0)