XF 2.1 Multiple File Upload Row?

Jaxel

Well-known member
I'm trying to handle a multiple file upload row
Code:
    <xf:uploadrow name="uploads" label="{{ phrase('image') }}"
        accept=".gif,.jpeg,.jpg,.jpe,.png" multiple="true" />
Code:
    $uploads = $this->request->getFile('uploads', true, false);
    \XF::dump($uploads);

I feel like that should work... but no matter what, the dump only ever has one item in the upload list. What am I missing?
 
Thanks for sharing Jaxel. Question though, if I want to upload a single file I just use name="whatever" without [ ] correct?
 
Top Bottom