I'm on TYPO3 11.5 with PHP 7.4 and Jobfair 4.0.4, legacy install. (was TYPO3 10.4, behaves the same)
I'm able to configure jobfair to accept more than one Upload, but I can't figure out, how to attach more than one file to the mails.
I configured it to have 4 attachments called attachement, attachement2, attachement3 and attachment4 and can access those in the Backend, but when I try to send an application via the frontend, it failes when trying to attache the files to the mail(s).
(1/1) Error
Call to a member function getOriginalResource() on null
in /var/www/localhost/htdocs/t3-11/typo3conf/ext/jobfair/Classes/Controller/JobController.php line 656
$recipientsBcc,
$sender,
LocalizationUtility::translate('tx_jobfair_domain_model_application.email_subject', 'jobfair', ['jobTitle' => $job->getJobTitle()]),
['newApplication' => $newApplication, 'job' => $job],
$newApplication->getAttachment()->getOriginalResource()->getName()
)) {
$this->flashMessageService('applicationSendMessage', 'applicationSendStatus', 'OK');
} else {
$this->flashMessageService('applicationSendMessageGeneralError', 'applicationSendStatusGeneralErrorStatus', 'ERROR');
at Dan\Jobfair\Controller\JobController->createApplicationAction()
in /var/www/localhost/htdocs/typo3_src-11.5.21/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php line 575
}
$validationResult = $this->arguments->validate();
if (!$validationResult->hasErrors()) {
$this->eventDispatcher->dispatch(new BeforeActionCallEvent(static::class, $this->actionMethodName, $preparedArguments));
$actionResult = $this->{$this->actionMethodName}(...$preparedArguments);
} else {
$actionResult = $this->{$this->errorMethodName}();
}