Skip to content
Snippets Groups Projects
Commit 5037b4eb authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] File size check (the har har solution)

parent 973aa6e9
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use TYPO3\CMS\Extbase\Mvc\Exception\NoSuchArgumentException;
/**
* The joblist plugin controller
......@@ -154,10 +155,16 @@ class JoblistController extends ActionController {
* Pre-apply action setup, configures model-property mapping and handles file upload
*
* @return void
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\NoSuchArgumentException
* @throws NoSuchArgumentException
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
*/
protected function initializeApplyAction() {
$uniqueFolderName = $this->request->getArgument('folderName');
try {
$uniqueFolderName = $this->request->getArgument('folderName');
} catch (NoSuchArgumentException $exception) {
$exceptionMessage = 'Eine Datei konnte nicht hochgeladen werden. Ist diese eventuell zu groß?';
$this->forward('applyForm', NULL, NULL, ['error' => $exceptionMessage]);
}
$propertyMappingConfiguration = $this->arguments->getArgument('applyData')->getPropertyMappingConfiguration();
$typeConverter1 = $this->objectManager->get(UploadedFileReferenceConverter::class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment