Hello,
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.
Thanks!
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.
Thanks.
11117
(牵牛散步)
October 16, 2012, 10:53am
3
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.
Thanks.
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
Thanks!
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
Thanks!
Hello.
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.
_uJJwAL
(_uJJwAL_)
October 29, 2012, 11:12am
5
I have used tinymce and CMultiUpload together but I didn’t see any problem in it. Can you elaborate the specific problem?