I am using CMultiFileUpload widget in the view.
Main goal is to check if the file size more than 1 MB. If it is alert a message.
I am trying to alert the filesize. It works fine in Chrome and Mozilla but not in IE
IE error: [color="#FF0000"]Unable to get property ‘0’ of undefined or null reference.[/color]
Here is my code
<?php $this->widget(‘CMultiFileUpload’,
array(
'model'=>$model,
'attribute' => 'images',
'accept'=> 'doc|docx|pdf|txt',
'denied'=>'Only doc,docx,pdf and txt are allowed',
'max'=>4,
'remove'=>'[x]',
'duplicate'=>'Already Selected',
'options'=>array(
'afterFileSelect'=>'function(e ,v ,m){
alert(e.files[0].size);
}'
)
));?>