Comments (9)
I recommend leaving this plugin, but if you have legacy project (just like me), I found simple solution just add 'disableExif' => true
to clientOptions
while rendering widget
Example
FileUploadUI::widget([
'model' => $model,
'attribute' => $attribute,
'url' => $url,
'clientOptions' => [
'disableExif' => true,
],
])
from yii2-file-upload-widget.
I think thant i must change widget or simply use directly jquery blueimp without any extension.
The easiest (but not so professional) workaround is to replace in your project:
vendor/bower-asset/blueimp-load-image/load-image.all.min.js
with old version: https://raw.githubusercontent.com/blueimp/JavaScript-Load-Image/v4.0.1/js/load-image.all.min.js
Keep this file handy in case composer replace it back.
from yii2-file-upload-widget.
Hello from 2021 :)
Solution that worked for me:
- Copy https://raw.githubusercontent.com/blueimp/JavaScript-Load-Image/v4.0.1/js/load-image.all.min.js to sources directory
- Using the AssetManager, replace the default Asset with something like this:
use dosamigos\fileupload\BlueimpLoadImageAsset;
Yii::$app->assetManager->bundles[BlueimpLoadImageAsset::class] = [
'sourcePath' => __DIR__ . '/assets/source' // load-image.all.min.js directory
];
- that's all :)
from yii2-file-upload-widget.
Hi @gb5256 I have the same problem, any suggestion to solve until they fix?
Thank's
from yii2-file-upload-widget.
Hi, that is a looong time ago... :-)
If I remember correctly, then this had nothing to with 2amigos, but with a dependency in the blueimp-bower assets.
To my knowledget there was an update of blueimp which has solved it.
So please try to "composer update" and see if it solves it for you as well.
from yii2-file-upload-widget.
thank's for fast reply. That was one of my first way that i try to solve this problem. I delete all "vendor" directory and run "composer update", but i have still the problem.
I think thant i must change widget or simply use directly jquery blueimp without any extension.
from yii2-file-upload-widget.
I think thant i must change widget or simply use directly jquery blueimp without any extension.
The easiest (but not so professional) workaround is to replace in your project:
vendor/bower-asset/blueimp-load-image/load-image.all.min.js
with old version: https://raw.githubusercontent.com/blueimp/JavaScript-Load-Image/v4.0.1/js/load-image.all.min.jsKeep this file handy in case composer replace it back.
Hi. I made a fork and pointed out the necessary dependencies. You can use it to avoid copying the file all the time. - https://github.com/reinq/yii2-file-upload-widget
from yii2-file-upload-widget.
I think thant i must change widget or simply use directly jquery blueimp without any extension.
The easiest (but not so professional) workaround is to replace in your project:
vendor/bower-asset/blueimp-load-image/load-image.all.min.js
with old version: https://raw.githubusercontent.com/blueimp/JavaScript-Load-Image/v4.0.1/js/load-image.all.min.js
Keep this file handy in case composer replace it back.Hi. I made a fork and pointed out the necessary dependencies. You can use it to avoid copying the file all the time. - https://github.com/reinq/yii2-file-upload-widget
hi @reinq how to replace your fork on existing "2amigos/yii2-file-upload-widget": "~1.0" ?
from yii2-file-upload-widget.
I think thant i must change widget or simply use directly jquery blueimp without any extension.
The easiest (but not so professional) workaround is to replace in your project:
vendor/bower-asset/blueimp-load-image/load-image.all.min.js
with old version: https://raw.githubusercontent.com/blueimp/JavaScript-Load-Image/v4.0.1/js/load-image.all.min.jsKeep this file handy in case composer replace it back.
This is the only solution that worked for me so far. Thanks
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
- 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.