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
3
votes
2 answers

Laravel - Passing a PHP resource to Storage::put

The Laravel docs (https://laravel.com/docs/5.2/filesystem#storing-files) state this: Storing Files The put method may be used to store a file on disk. You may also pass a PHP resource to the put method, which will use Flysystem's underlying…
Snowball
  • 1,138
  • 2
  • 14
  • 30
3
votes
2 answers

Laravel Flysystem & Rackspace CRON uploads fail with 401 while on-demand uploads work

Our system generates various invoices every hour and uploads those to the cloud. Also it is possible to create the invoice on demand by clicking a button on our frontend. When manually requesting to create the said invoice then it never fails to…
Artur K.
  • 3,263
  • 3
  • 38
  • 54
3
votes
0 answers

S3 Upload with Flysystem: XAmzContentSHA256Mismatch

I'm attempting to upload a file to Amazon S3 from the local hard disk using League's AWS S3 v3 Flysystem. Here is my function: /** * Uploads a file from local disk to S3 * @param $filename string * @param Illuminate\Filesystem\FilesystemAdapter…
Jeff Lambert
  • 24,395
  • 4
  • 69
  • 96
2
votes
1 answer

How to proper use Flysystem and Local Adapter

Since I couldn’t find a proper documentation and examples for flysystem, I am asking you for help. Currently I am developing a plugin (for Shopware 6), and I am using some sources that are stored inside my plugin (such as pictures, and csv files).…
balrcoding
  • 111
  • 1
  • 1
  • 9
2
votes
1 answer

Is there a way to properly close file handles in Laravel/Flysystem?

I have a Laravel Command that periodically uploads some file to a remote S3 disk (DigitalOcean Spaces, S3 compatible and uses the Laravel/Flysystem S3 driver). The problem is that the command crashes after moving around 100 files because the server…
Pelmered
  • 2,727
  • 21
  • 22
2
votes
1 answer

Error on upload file using league/flysystem-aws-s3-v3 on Laravel into Minio

I have error when trying to upload files to Minio object-storage server (something similar to AWS S3). My endpoint is using hostname such as example.com, and the bucket is "mybucket". But when I upload file I got error like this : Error executing…
2
votes
2 answers

Directus Storage Adapter AWS S3 error: No permission to write:

I decided to use Directus as a Headless CMS in one of our projects. For storing media files we decided to use AWS S3 as a storage adapter. I have followed all instructions from Directus documentation how to setup the configurations for S3 but i am…
erimeri
  • 181
  • 1
  • 3
  • 17
2
votes
2 answers

Composer failure when installing Laravel + Voyager with league/flysystem

I did a composer create-project laravel/laravel . and a composer require tcg/voyager. I keep getting this. Using version ^1.4 for tcg/voyager ./composer.json has been updated Loading composer repositories with package information Updating…
Samik Sengupta
  • 1,944
  • 9
  • 31
  • 51
2
votes
0 answers

Unable to access uploaded file in browser through URL in Lumen

I'm building a web app with Docker, Nginx and Lumen. I have completed file upload functionality and everything works fine. However, when I try to access uploaded file from URL Lumen throws me NotFoundHttpException. I have already created symlink…
Ilyas Khametov
  • 308
  • 3
  • 18
2
votes
0 answers

create a directory at remote server with sftp laravel

I am trying to create a new directory at remote server and set permission to the directory. $remote_path = $clientName . '/' . $fileNameToStore; Storage::disk('sftp')->makeDirectory($clientName, 'public'); $ftp =…
Azima
  • 3,835
  • 15
  • 49
  • 95
2
votes
1 answer

Append to file using flysystem in ILIAS

I am currently writing a logger writing to rather large log files in ILIAS for some plugin. I am using the neat new filesystem. Since the new log messages need to append to a file, I can not simply use put or update, since they seem to always…
Amstutz
  • 565
  • 3
  • 14
2
votes
0 answers

Https urls in Laravel - Rackspace with Filesystem

I am using filesystem package without problems for upload and download files to rackspace. According to docs on how to obtain the file url I do: $content = fopen('logo.png', 'r+'); \Storage::disk('disk_temp')->put('logos/logo.png', $content); $url…
manix
  • 14,537
  • 11
  • 70
  • 107
2
votes
1 answer

Flysystem s3: Unable to move a directory

I'm using the league/flysystem package with the Flystem driver on laravel. I'm currently trying to rename a directory. From my understanding, I need to use the move() method for this. On local filesystem driver, this is working fine. However, when…
Nicolas Widart
  • 1,187
  • 4
  • 13
  • 30
2
votes
1 answer

Configuring LiipImagineBundle Symfony to work with Flysystem

I've been trying to configure a CDN (S3) to work with LiipImagineBundle, but keep getting stuck when it is asking for a non-existent service. What does this mean? The value of the filesystem_service property must be a service that returns an…
OrderAndChaos
  • 3,547
  • 2
  • 30
  • 57
2
votes
1 answer

Downloading file from S3 using Flysystem in PHP

I was wondering if I could get some help. Im using the Flysystem package in my project. At the moment, im uploading a file to S3 using the following code $awss3 = new Flysystem(new AwsS3Adapter($client_details, 'bucket-name')); $stream =…
BigJobbies
  • 3,633
  • 11
  • 43
  • 66
1 2
3
8 9