Yii Framework Forum: Cmultifileupload Has An Issue.. - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cmultifileupload Has An Issue.. CMultiFileUpload is not working

#1 User is offline   Alpesh Vaghela 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 20-May 13

Posted 11 April 2014 - 08:00 AM

CMultiFileUpload is not working when i tried to upload two different type of extension simultaneously...

For example, if i select .pdf and .docx file together and post the form only one file is uploading now...

also i print the global constant $_FILES, it's array is also showing only one (last added) file...

Is it a bug ??... Please help me on this matter...

My code is....

$this->widget('CMultiFileUpload', array(
'model' => $model,
'attribute' => 'filename',
'accept' => 'jpg|gif|png|txt|pdf|doc|docx|ppt|pptx|rtf|xls|xlsx',
'denied' => 'Only doc,docx,pdf and txt are allowed',
'max' => 1000,
'remove'=> '<i class="icon-trash wysiwyg-color-red"></i>',
'duplicate' => 'Already Selected',
'options' => array('id' => 'myclass1','onFileSelect' => 'function(e, v, m){ $(".filename").html("Add more..."); }',),
'htmlOptions' => array('class' => 'myclass', 'multiple' => false, 'size' => 25)
));
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users