Questions tagged [flysystem]

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.

134 questions
2
votes
3 answers

Laravel Storage facade and retrieving files

How do I get files located in Storage? I build a route and directed it to myCcontroller@myMethod. Method is below public function myMethod() { $validPath = 'valid-path-inside-local-storage'; $file =…
dbr
  • 1,037
  • 14
  • 34
2
votes
1 answer

Laravel S3 Storage disk; has() is returning false

I am trying to check if a file exists on s3, but I keep getting false back. I feel that I am doing something wrong, because the file does exist on s3. Here is how I am checking: $disk = Storage::disk('s3-avatars'); $exists = $disk->has($md5 .…
Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338
2
votes
1 answer

How to Enable "reduced redundancy" on Laravel Storage

I'm using Laravel 5.2 Filesystem Storage Class. And here's how I put the object to my bucket: Storage::put('s3')->put([$path, $content]); How do I add StorageClass => REDUCED_REDUNDANCY in the option? I tried to add on config/filesystem.php but it…
Yansen Tan
  • 551
  • 4
  • 19
2
votes
4 answers

How to get url from dropbox using flysystem?

Hello i has upload my file using laravel5, https://github.com/GrahamCampbell/Laravel-Dropbox integrate to dropbox and has succeed, and then i want to get the url for my imgsrc="" on the frontend, How i can get thats…
Donny Gunawan
  • 363
  • 1
  • 6
  • 21
2
votes
0 answers

Flysystem local asset from outside public folder in Laravel 4

I have the following method that will get an asset depending on which CDN is used: public function getAsset($filename, $dir = null, $prefix = null) { $extension = File::extension($filename); $name = File::name($filename); …
ChrisBratherton
  • 1,540
  • 6
  • 26
  • 63
1
vote
0 answers

Laravel Storage SFTP

I'm trying to upload file via Laravel filesystem abstraction on two different remote servers with: Storage::disk('sftp')->put($fileName, $file); Storage::disk('ftp')->put($fileName, $file); The FTP works... but the SFTP return error "Unable to…
DEVX
  • 11
  • 3
1
vote
0 answers

How to instantiate Flysystem adapter dynamically?

I'm using Symfony 6 and Flysystem 3, and depending on a parameter I want to pick one of the 2 adapters I have. I don't want to instantiate both of them in the constructor since I'm only using 1 per execution (it's a Consumer). Tried to instantiate…
1
vote
1 answer

Configuration aws_s3 with flysystem and liip_imagine

My symfony 5.4 project uses aws_s3 + flysystem + liip_imagine. In aws_s3, I have a PRIVATE bucket: "myBucket" with 3 subfolders : documents photos media And IAM PERMISSION "Effect": "Allow", "Action": [ "s3:ListBucket", …
brico
  • 61
  • 6
1
vote
0 answers

PHP SECLIB fails to connect to server

I'm working on a project that parses servers to find websites hosted on them. I'm using flysystem (which uses seclib) on a symfony 5 application. Works fine with 28 of the 29 servers I added, but one of them keeps failing with this error : User…
Paul
  • 11
  • 5
1
vote
1 answer

Flysystem Google Cloud Storage adapter Uniform Bucket

I'm trying to user an uniform bucked with flysystem v3. https://flysystem.thephpleague.com/docs/adapter/google-cloud-storage/ $clientOptions = [ 'projectId' => "project-id", "keyFile" => "file.json", ]; $storageClient…
Emanuel
  • 359
  • 4
  • 21
1
vote
2 answers

Laravel can't connect to AWS S3

I have set up an S3 bucket and created an IAM user with full S3 access permission, and ran composer require league/flysystem-aws-s3-v3. I have also have configured the following in…
Issaminu
  • 97
  • 2
  • 10
1
vote
2 answers

Confige service based on session id

In my Symfony 6 project I need to store big uploaded files per user session. As it's not a good idea to directly store these files in the session I'm using flysystem with a directory per session id and a cleanup process. So far so good Now as I…
mabe.berlin
  • 1,043
  • 7
  • 22
1
vote
1 answer

Symfony oneup league flysystem file not found

I am uploading files using oneup/flysystem-bundle and vich/uploader-bundle and that works fine. When trying to delete a file with $this->filesystem->delete($path) it throws error saying that file not found, although the path is correct. This…
BernardA
  • 1,391
  • 19
  • 48
1
vote
1 answer

league/flysystem-aws-s3-v3 get custom metada

I'm messing with the flysystem library (it is amazing, anyway!) I created some files on the remote s3 bucket defining some custom metadata $conf = [ 'visibility' => 'public', 'Metadata' => [ 'Content-type' => 'image/jpeg', 'Generated' =>…
daniele m
  • 63
  • 6
1
vote
1 answer

Shopware 6 incompatible with our web dev setup (Apache & ACLs)

Our web development setup on Ubuntu 20.04 looks as follows: We run Apache as www-data (pretty standard) The user logs in as "dev" (for example) So PHPStorm runs as dev This usually leeds to the problem, that CLI commands (such as building the…
Alex
  • 32,506
  • 16
  • 106
  • 171
1 2 3
8 9