slovenianGooner's avatar

Error when sending a files form

So I get this error when trying to send a form that accepts files. If I don't give a file, the error appears:

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'An uploaded file must be an array or an instance of UploadedFile.' in C:\Users\Lovro\Code\application\workbench\ngine5\core\vendor\symfony\http-foundation\Symfony\Component\HttpFoundation\FileBag.php on line 59

Any ideas what this would be? If I give a file, everything works OK. Is this a Symfony issue?

Even when I try to debug it I always recieve this error, can't properly see what it would be wrong.

0 likes
5 replies
slovenianGooner's avatar

@bashy Thanks for that, exactly the same issue. Might just apply a temporary fix until it's officially fixed!

nolros's avatar

@bashy thanks, been struggling with the same issue for a couple of hours now.

Magnetion's avatar

As @bashy noted, this is a known issue. Has been around for a few weeks now. I can verify the jQuery fix and the updated function both will work in the meantime. Hopefully this bug is squashed soon.

Please or to participate in this conversation.