Git Product home page Git Product logo

Comments (7)

sandy0201 avatar sandy0201 commented on June 14, 2024

Hi,

I'm getting the same error too.
Please assist urgently.

Thank you.

from yii2-file-upload-widget.

iraniamir avatar iraniamir commented on June 14, 2024

Hi,

Me too !

from yii2-file-upload-widget.

tonydspaniard avatar tonydspaniard commented on June 14, 2024

It seems is due to the version used. That version is not on version 9.9. Will update as soon as I have some time, or maybe you guys can do a PR?

The only thing we need to do is to change the version and make sure everything works as expected: https://github.com/2amigos/yii2-file-upload-widget/blob/master/composer.json#L32 should be 9.9.*

Can you try @tavousi ? Thanks in advance!

from yii2-file-upload-widget.

tonydspaniard avatar tonydspaniard commented on June 14, 2024

was updated

from yii2-file-upload-widget.

robov avatar robov commented on June 14, 2024

when i set these options:

    'clientOptions' => [
        'maxNumberOfFiles' => 2,    
        'acceptFileTypes' => '/(\.|\/)(gif|jpe?g|png)$/i',
    ],

then I get errors

 TypeError: options.acceptFileTypes.test is not a function

from yii2-file-upload-widget.

tonydspaniard avatar tonydspaniard commented on June 14, 2024

See my comment on #116 (comment)

from yii2-file-upload-widget.

quevon24 avatar quevon24 commented on June 14, 2024

If you get here because you got the same error in jquery, pass the regex this way:

'acceptFileTypes' => new RegExp("(.|/)(gif|jpe?g|png)$" ,"i")

from yii2-file-upload-widget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.