I'm working on a custom finisher for ext: Forms / Typo3 Forms.
I added an image upload input to the form. I can fetch the entered form values using getFormValues()
of the forms context, however, this returns a TYPO3\CMS\Extbase\Domain\Model\FileReference
for image input types.
How do I resolve the file reference to an actual file path? I need to do some extra work on the file itself, before attaching it to an e-mail and sending it out via the Mail API.
getPublicUrl()
should help you.
Maybe, you have to transform it into an absolute path, but that should not be difficult.