bug. Coco always allow uploads using any file extension no matter if is allowed or not in 'allowedExtensions'
Issue #1
resolved
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)
-
reporter -
reporter - changed status to resolved
-
reporter - changed title to bug. Coco always allow uploads using any file extension no matter if is allowed or not in 'allowedExtensions'
- edited description
- Log in to comment
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);