This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
option - accept => 'image/*' does not work as expected #106
Open
Description
Have problem with
<?= FileUpload::widget([
'model' => $uploadModel,
'attribute' => 'image',
'url' => ['document/upload'],
'options' => [
'accept' => 'image/*'
],
'clientOptions' => [
'maxFileSize' => 2000000
],
...
'accept' => 'image/*'
should disallow to upload anything that does not match image/*
pattern. Everything seems to be clear, however I am able to upload any type of files (e.g. .zip, .rar, any scrpts).
What could be the cause of this issue?