I am building a custom backend module for Neos. I have a model that should have an image attached. This image is optional. Everything works, when I upload an image. But without it, I get an Exception Argument 1 passed to TYPO3\Media\Domain\Model\Image_Original::__construct() must be an instance of TYPO3\Flow\Resource\Resource, null given.
Not really related to the question, but why did you use Entity for this Category ? Why not using a custom node type “Category” ? Like this your editor can use the Navigate component to handle the category.
Hi all,
this is just for the record.
Sorry for reviving this topic
If Neos / Flow Users are confronted with the exception mentioned above, it is always possible that the form attribute "enctype=multipart/form-data" is missing in the respective new/edit forms, that should handle the upload. This attribute allows the including of files in the post-data.
This is indeed hard to track down… Maybe it helps some of you!