flysystem is a PHP library that provides an abstraction layer for filesystems. It provides a common API for handling standard tasks across multiple file storage engines, and enables easily swapping local and remote filesystems and emulating directories in systems that don't support them.
Questions tagged [flysystem]
134 questions
1
vote
1 answer
Laravel Corrupted Files - Files contain temporary path?
I'm currently developing a content management system using Laravel, however I am coming across a very strange issue...
//If an asset was provided
$asset = $request->file('asset');
if($asset) {
//Set the file name.
$fileName =…

Alex Mayo
- 82
- 1
- 10
1
vote
1 answer
Serving files for download with Symfony3 and Flysystem
Introduction
I am using:
Windows 10 Pro
XAMPP with PHP v7.0.9
Symfony v3.1.6
Doctrine v2.5.4
StofDoctrineExtensionsBundle [1] in order to
manage Tree structure.
OneupUploaderBundle [2] in order to Upload files
OneupFlysystemBundle [3] for…

Rikijs
- 728
- 1
- 12
- 48
1
vote
2 answers
Flysystem/sftp Adapter with two-factor authentication: key AND password
Does anybody have any recent experiences with phpseclib / Flysystem/SFTP in dual factor authentication (private key AND password)?
I just ran into this issue yesterday, and need a fix. My searches lead me to:
phpseclib sftp connect with private…

guice
- 976
- 4
- 11
- 31
1
vote
0 answers
STACK storage, laravel 5.1 and webdav get images from folder and display them all
I'm trying to store and receive images from my STACK storage (on a raid server rack). It's designed to store files (especially images for me).
So I'm using the plugin 'Flysystem' and the Webdav plugin what comes with it.
Now, The code I'm using to…

Robin
- 1,567
- 3
- 25
- 67
1
vote
1 answer
Symfony 3 OneUp Flysystem error: There is no extension able to load the configuration for "oneup_flysystem"
According to the configuration of Flysystem i have put the following settings on my config.yml:
oneup_flysystem:
adapters:
acme.flysystem_adapter:
awss3v3:
client: acme.s3_client
bucket:…

Dimitrios Desyllas
- 9,082
- 15
- 74
- 164
1
vote
1 answer
Laravel 5.2 FTP Driver throwing fclose(): supplied resource is not a valid stream resource
I'm trying to use the Laravel FTP Flysystem Adapter. Following the instructions on https://laravel.com/docs/5.2/filesystem I have added the following to my filesystems.php config file
'disks' => [
'ftp' => [
'driver' => 'ftp',
…

Wasim
- 4,953
- 10
- 52
- 87
1
vote
1 answer
Connecting to softlayer object storage using openstack API library php-opencloud
Is there someone tried to connect to softlayer object storage using the php-opencloud library?
I got 400 bad response when the library trying to make authentication.
From what I see inside the php-opencloud library, It use authentication method…

Alvin Tanjaya
- 13
- 4
0
votes
0 answers
EasyAdmin 4 + VichUploader + oneupflysystem + AWS S3. Get image from private bucket
I'm using VichUploader and oneupflysystem to upload images to AWS server but when I config my vich_uploader.yaml there is uri_prefix, but i can't set there right pass to see the image on the form instead of that i have to generate presigned url. How…

Andrii
- 1
0
votes
1 answer
Make FTP connection in Laravel not working with Flysystem library
Hello i am trying to make a FTP connection, using Laravel 8 and Flysystem library, however all my tries have failed. My ftp details work on Fillezilla
Here is my code
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Ftp;
$adapter =…

Tigane
- 99
- 8
0
votes
0 answers
Create zip archive to s3 disk using Laravel 9 and Flysystem AwsS3V3Adapter
I have the following code to create a zip archive in Laravel 9 to an s3 disk using Flysystem but no file is being generated and nothing in the error logs. I have the following packages installed:
"installed:"league/flysystem-aws-s3-v3":…

adam78
- 9,668
- 24
- 96
- 207
0
votes
0 answers
Why is Oneup/UploaderBundle so slow to upload a 'big' file (1GB)?
In a Symfony project, I have implemented the Oneup/UploaderBundle with the Oneup/FlysystemBundle to upload files to a S3 compatible storage.
I tried to upload a 1GB file, and it took about 3 min using the Aws\S3\S3Client adapter…

heryforce
- 1
- 3
0
votes
1 answer
How works "extend" of Storage facade in Laravel, and why my code behaves so strange?
I want to add additional cloud driver to my lumen app like this:
Storage::extend('s3_v2', static function ($app, array $config) {
return (new FilesystemManager($app))->createS3Driver($config);
});
So, it work's. And it's a problem. When i use…

Vlad K
- 47
- 4
0
votes
1 answer
Symfony 5.4 - Flysystem Driver for ElfinderVolume does not exist
My environment:
Symfony 5.4
Php version 7.4
Installed packages and versions :
"aws/aws-sdk-php": "^3.238",
"helios-ag/fm-elfinder-bundle": "^12.1",
"league/flysystem": "^2.5",
"league/flysystem-aws-s3-v3": "^2.5",
"league/flysystem-bundle":…

mirkoventuri
- 1
- 1
0
votes
1 answer
Cannot list files in directory with phpleague flysystem sftp v3
We have recently switched from v1 to v3 of the flysystem sftp package. However, the v3 version is throwing the following error when trying to access files in an existing directory like so:
$disk = Storage::disk('sftp');
$directories =…

santacruz
- 43
- 6
0
votes
0 answers
Laravel 9 Storage : cannot set directory permissions
I have updated my app to Laravel 9 and have an issue when creating a directory with the League Flysystem SFTP adapter v3 and the Laravel Storage Facade. It seems that the Facade does not allow to change the directory permissions when using the…

Maxime Freschard
- 1,066
- 2
- 15
- 26