Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Please update blueimp-file-upload depenendcy #169

Open
gb5256 opened this issue May 4, 2020 · 9 comments
Open

Please update blueimp-file-upload depenendcy #169

gb5256 opened this issue May 4, 2020 · 9 comments

Comments

@gb5256
Copy link

gb5256 commented May 4, 2020

There is a bug in versions below 10 which does not allow certain images to be uploaded.
See this:
blueimp/jQuery-File-Upload#3639
Is it possible that you update your dependency?
You are using 9.x right now.

Thanks !
Gb5256

@FedericoBenedetti1976
Copy link

Hi @gb5256 I have the same problem, any suggestion to solve until they fix?
Thank's

@gb5256
Copy link
Author

gb5256 commented Sep 28, 2020

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.

@FedericoBenedetti1976
Copy link

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.

@ffurbo
Copy link

ffurbo commented Sep 29, 2020

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.

@reinq
Copy link

reinq commented Oct 26, 2020

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

@FedericoBenedetti1976
Copy link

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" ?

@kcioch
Copy link

kcioch commented Apr 20, 2021

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,
            ],
        ])

@gebekov
Copy link

gebekov commented Jun 8, 2021

Hello from 2021 :)

Solution that worked for me:

use dosamigos\fileupload\BlueimpLoadImageAsset;

Yii::$app->assetManager->bundles[BlueimpLoadImageAsset::class] = [
    'sourcePath' => __DIR__ . '/assets/source' // load-image.all.min.js directory
];
  • that's all :)

@cosmicwebsrl
Copy link

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.

This is the only solution that worked for me so far. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants