Comments (7)
Hi,
I'm getting the same error too.
Please assist urgently.
Thank you.
from yii2-file-upload-widget.
Hi,
Me too !
from yii2-file-upload-widget.
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.
was updated
from yii2-file-upload-widget.
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.
See my comment on #116 (comment)
from yii2-file-upload-widget.
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)
- Change language
- maxFileSize for basic upload HOT 1
- How to select buttons to use
- How to change size for thumbnail HOT 6
- How do i change the translation of the widget? HOT 1
- working with the widget use dosamigos\fileupload\FileUploadUI; in Yii2 HOT 1
- Zero-day in jQuery-File-Upload HOT 1
- How to Upload ,Delete works in yii2 HOT 2
- SyntaxError: Unexpected token < in JSON at position 0 HOT 4
- Передача изображений в в иджет HOT 1
- using FileList action HOT 2
- Redirect to view after upload HOT 1
- Open source project needed HOT 3
- single file upload
- Chunks Overwrite Themselves
- Ukrainian localization
- composer.json update for compability problem with bootstrap 4
- How to pass images in field
- Please update blueimp-file-upload depenendcy HOT 9
- bootstrap 5 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-file-upload-widget.