Multiple file upload
Permalink
Hi all, i was wondering why i cant add an file input with file manager with a multiple attribute, or am i missing something?
as you can see i am trying to get images as an array back in my post. But when selecting multiple items in file manager it just resets the value on every item. So only the last item is selected.
Hope someone could help me!
Thanks in advance :)
$al = Loader::helper('concrete/asset_library'); echo $al->file('ccm-b-image', 'images[]', t('Choose image'));
as you can see i am trying to get images as an array back in my post. But when selecting multiple items in file manager it just resets the value on every item. So only the last item is selected.
Hope someone could help me!
Thanks in advance :)
if you run this on button click of add image:
it will open the filemanager, and when some1 selects multiple items this method is called as callback from filemanager:
so setting:
will show the file objects from the filemanager
this is all in javascript