Multi File Upload


Does anyone knows why CMultiFileUpload widget creates new inputs with name = [object Object]?

Here is my code:

in view:

$this->widget(‘CMultiFileUpload’, array(

                        'name' => 'files',

                        'accept' => 'jpeg|jpg|gif|png', 

                        'duplicate' => 'Duplicate file!', 

                        'denied' => 'Invalid file type',


and after uploading files it creates something like this (copied from Firebug):

<input type="file" name="files[]" value="" id="files" class="MultiFile-applied" style="position: absolute; top: -3000px;">

<input type="file" name="[object Object]" value="" id="files_F1" class="MultiFile-applied MultiFile">

First input has name files and after that all inputs get [object Object] name.

In controller CUploadedFile::getInstancesByName(‘files’) has only one instance no matter how many files I upload.


Nevermind I found the problem.

It seems that jQuery multiple plugin is not compatible with tinyMce plugin.

I hope i will find a solution. I will post it if I’ll find it.


hi Sergiu Precup:

I also get a problem like that.When i use CMultiFileUpload and tinyMce together , in my controller i only get an instance by call “CUploadedFile::getInstancesByName( ‘images’ )”.

I don’t know if you have find a solution? If you get please share me :slight_smile:



At that moment i quit using these two plugins together but now i must use them, and guess what - same problem. I`m stuck and i don’t know what to do.

Doesn`t anyone have an answer for this?

Tnx in advance.

I have used tinymce and CMultiUpload together but I didn’t see any problem in it. Can you elaborate the specific problem?