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?

$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 :)

 
incredikill replied on at Permalink Reply
To answer my own question:

if you run this on button click of add image:
ccm_launchFileManager('&fType=' + ccmi18n_filemanager.FTYPE_AUDIO);


it will open the filemanager, and when some1 selects multiple items this method is called as callback from filemanager:
ccm_chooseAsset


so setting:
ccm_chooseAsset = function(obj){ console.log(obj);}


will show the file objects from the filemanager

this is all in javascript