Bad response on submitting no mandatory UploadImage control

Notice: This thread is very old.
albertosanchezm
Member | 12
+
0
-

Hello,

I have a form with a UploadImage control not mandatory. The point is, despite the field is not mandatory, when I submit the form without the field, I'm getting the following error:

Fatal error: Method Nette\Http\FileUpload::__toString() must not throw an exception in D:\Uniserver\www\comicshelf\vendor\nette\nette\Nette\Database\ResultSet.php on line 68

Is this correct?