Issue #1 resolved

bug. Coco always allow uploads using any file extension no matter if is allowed or not in 'allowedExtensions'

Christian Salazar
repo owner created an issue

first, configure your widget in this way: 'allowedExtensions'=>array('jpeg','jpg','gif','png'),

now, upload a .TXT file, it allows too, its an error.

Comments (3)

  1. Christian Salazar reporter

    solved. commit 5ff4041.

    in file CocoWidget.php line number 179, please change:

    $uploader = new ValumsFileUploader(array(), $this->sizeLimit);

    for this:

    $uploader = new ValumsFileUploader($this->allowedExtensions, $this->sizeLimit);

  2. Log in to comment