thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

storage driver sftp, Exception "This driver does not support retrieving URLs." #5140

Closed kolyayurev closed 3 years ago

kolyayurev commented 3 years ago

Version information

Description

When i use sftp storage driver, and go to admin panel i get RuntimeException "This driver does not support retrieving URLs."

But went i test this code, all work fine and i not get Exception. $exists = Storage::disk('sftp')->exists('users/default.png');

Code below, return Exception $exists = Storage::disk('sftp')->url('users/default.png');

Steps To Reproduce

Steps to reproduce the behavior:

  1. add to config "filesystems" 'sftp' => [ 'driver' => 'sftp', 'host' => '192.168.11.111', // my sftp serverip 'username' => 'username', 'password' => 'password', ]
  2. set in .env file FILESYSTEM_DRIVER=sftp
  3. clear config cache
  4. go to admin panel
  5. get Exception

Screenshots

image image

image

kolyayurev commented 3 years ago

My question in laravel https://github.com/laravel/framework/issues/35159

MrCrayon commented 3 years ago

Sadly I can only give you the same answer you recevied in Laravel/framework. You need URLs to display images and other things you save in your storage and that driver does not support it.

Not a Voyager issue and nothing we can do our side.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.