Using a FileUpload input in a Custom Page
Hello everyone!
I have created a custom page with several forms, all of which work perfectly, except for one.
What doesn't work is a form with two FileUploads, one for an article cover, the other for multiple other images.
Doing a
Is this normal? On the page I called the
My code so far:
Thanks everyone!
I have created a custom page with several forms, all of which work perfectly, except for one.
What doesn't work is a form with two FileUploads, one for an article cover, the other for multiple other images.
Doing a
dd of the getState() I get this result, but honestly I was expecting an instance of FileUploaded (or whatever it's called), whereas now it's just returning strings.Is this normal? On the page I called the
WithFileUploads trait.My code so far:
Thanks everyone!


Solution
Ok, found the problem 
I had to use the
I had to use the
imagesData array, and not the getState() method.