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
2 answers
I converted an array into csv, then I get an error when I try to upload it to s3
Basically what I want to do is convert my array to csv file, then upload it to amazon s3... Below is the code on making the csv file and uploading it to s3...
$output = [...] // This is my array
$file = fopen("C:\Users\User\Desktop\myFile.csv",…

jove0610
- 664
- 1
- 8
- 16
1
vote
0 answers
How to upload string to ftp with flysystem and utf-8
I have a task to upload a txt file to the FTP server using League\Flysystem with UTF-8
Code which is responsible for that is looking like this:
...
use League\Flysystem\FilesystemInterface;
final class UploadToFTPHandler implements…

dosad
- 151
- 7
1
vote
1 answer
Laravel 8 Storage move file not found
I am trying to move a file from a temporary path to the correct path. However no matter what I tried it always sends back this file not found error:
League\Flysystem\FileNotFoundException
File not found at path:…

convers39
- 312
- 5
- 12
1
vote
0 answers
ftp_mkdir(): OOPS: malloc
I am getting this error on file upload ftp_mkdir(): OOPS: malloc, and I can't upload a base64 image on FTP server
my client is Flysystem on Laravel framework and my FTP server is Vsftpd

Moein Pakkhesal
- 88
- 1
- 7
1
vote
1 answer
Gateway Timeout Error when uploading file from Laravel 7 to AWS S3
Any ideas on what is going wrong here? I'm totally stumped.
Code
I'm running the following code on a local development server (MacOS with Laravel Valet):
$file = $request->file('uploaded_file');
$folder = '001-testing';
$filename =…

Holly
- 3,601
- 1
- 17
- 23
1
vote
0 answers
Test connection
I was curious if anyone knows a way to test a connection with preferable a custom timeout. I have a page where different disks are being indexed for selection in further processing. One disk uses sftp, this disk is stuck at random times so the…

Robert Fridzema
- 517
- 3
- 18
1
vote
1 answer
League CSV package - reading one line at a time from a resource/stream
I'm using The PHP League CSV importer/exporter to import a large CSV file in Laravel. Since the file is large, I would like to stream it to the CSV parser and handle it one line at a time, without loading every line into memory.
Laravel uses…

Jason
- 4,411
- 7
- 40
- 53
1
vote
3 answers
symfony 4 - flysystem autowire
could you help me with this please?
Cannot autowire service "App\Estimate\DocumentManager": argument "$flysystem" of method "__construct()" references class "League\Flysystem\Filesystem" but no such service exists. You should maybe alias this class…

Jakub Kontra
- 586
- 1
- 5
- 19
1
vote
1 answer
Handling large files with Flysystem
I'm using Flysystem in a Symfony app to manage files upload / download on S3.
$downloadableFileStream = $this->get("filesystem")->readStream($document->getDocument()),
$mimeType =…

Benjamin B.
- 473
- 5
- 15
1
vote
1 answer
league/flysystem - RecursiveDirectoryIterator::__construct(/proc/tty/driver): failed to open dir: Permission denied
Is it possible to avoid this exception (maybe by excluding directories which can't be read by the PHP process because of a lack of permissions?). I can't find it in the docs.
RecursiveDirectoryIterator::__construct(/proc/tty/driver):
failed to open…

Michael Käfer
- 1,597
- 2
- 19
- 37
1
vote
0 answers
Laravel Flysystem WebDav list directory
I'm trying to get list of directory on WebDav through Flysystem however is it empty. I'm using Laravel Graham's Campbell integration of Flysystem:
dump(Flysystem::listContents('test'));
gives me empty array…

Aleksandr Popov
- 500
- 5
- 20
1
vote
2 answers
Change config FlySystem uses in Laravel
The Laravel documentation states that th FlySystem config is located in config/filesystems.php. Is there a way I can change where this file is loaded or can i state when using a disk to load from a different config?
So instead of…

myol
- 8,857
- 19
- 82
- 143
1
vote
1 answer
OneupFlysystemBundle : how to have different adapters between dev. and prod
I'm integrating OneupFlysystemBundle, and I'm wondering how to use the local adapter on my development PC and awss3v3 on the production servers.
I've done this, but it's not working out (it always use the local) :
oneup_flysystem:
adapters:
…

Bruno
- 1,088
- 1
- 13
- 31
1
vote
1 answer
Injecting a disk instance in Laravel
Question: How can I inject a disk in my code (constructors or controller methods)?
Related to: https://laravel.com/docs/5.4/filesystem#obtaining-disk-instances
What I want is to do something like
function __construct(Disk $disk)
{
}
instead of…

user237329
- 809
- 1
- 10
- 27
1
vote
1 answer
404 Not Found errors when dealing with folder operations
I am trying to do various things with folders after creation, such as move ad delete.
However, I am only getting 404 Not Found errors, despite the folders existing!
I am using the following code to try and delete a folder
try {
…

Mr Pablo
- 4,109
- 8
- 51
- 104