Skip to content
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
@bologer

Description

@bologer

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions