barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 169 forks source link

Sftp Problem Flysystem - Laravel 8.21.0 #297

Open derryberni opened 3 years ago

derryberni commented 3 years ago

PIease Help, I Got Error When using flysystem

My Environment

Laravel Version : 8.21.0 PHP : 8.0

composer.json

require": {
        "php": "^7.3|^8.0",
        "barryvdh/laravel-elfinder": "^0.4.7",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "laravel/framework": "^8.12",
        "laravel/tinker": "^2.5"
    },

this my config

filesystems.php

'disks' => [
        'sftp' => [
            'driver' => 'sftp',
            'host' => '192.168.2.1',
            'username' => 'mysftpuser',
            'password' => 'pwd'
        ],

    ],

elfinder.php

'disks' => [
      'sftp'
    ],

and when i open elfinder i got it

message: "Class "League\Flysystem\Sftp\SftpAdapter" not found"

i'am try to install self but conflict

composer require league/flysystem-sftp

./composer.json has been updated
Running composer update league/flysystem-sftp
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - league/flysystem-sftp[2.0.0, ..., 2.x-dev] require league/flysystem ^2.0.0 -> found league/flysystem[2.0.0-alpha.1, ..., 2.x-dev] but the package is fixed to 1.1.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - league/flysystem-sftp[2.0.0-alpha.1, ..., 2.0.0-RC1] require php ^7.2 -> your php version (8.0.1) does not satisfy that requirement.
    - Root composer.json requires league/flysystem-sftp ^2.0 -> satisfiable by league/flysystem-sftp[2.0.0-alpha.1, ..., 2.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions```
luqmanulh25 commented 3 years ago

same here

espitiamx commented 2 years ago

same here; any clue please?

barryvdh commented 2 years ago

Yeah needs V2 support; https://github.com/barryvdh/elfinder-flysystem-driver/issues/80

dnsimmons-aaa commented 2 years ago

Same issue here ... anxiously awaiting a fix ....

marco987 commented 2 years ago

I solved it this way:

asadsajjad commented 2 years ago

what should be the next step as its still not uploading the files to the server?

csantisgallegos commented 2 years ago

@marco987 muchas gracias, a mi me funciono y tenia el mismo inconveniente

alessandrofuda commented 1 year ago

try composer require league/flysystem-sftp -W