Questions tagged [gaufrette]

PHP5 library that provides a filesystem abstraction layer

Mark Question with this tag if you have trouble employing the filesystem abstraction layer.

It permits development of an application without the need to know were all those medias will be stored and how.

Another advantage of this is the possibility to update the files location without any impact on the code apart from the definition of your filesystem.

Taken from the projec page

52 questions
1
vote
1 answer

SFTP with Gaufrette and Phpseclib can't read files

I am trying to get a json file in a SFTP server from a Symfony2 command. I use KnpGaufretteBundle and the phpseclib-sftp adapter. I have on my computer a running SFTP server, I can connect it with filezilla and list/read files so I do not think…
iBadGamer
  • 566
  • 6
  • 22
1
vote
1 answer

Gaufrette and Symfony 2: There is no filesystem defined for the "images" domain

I'm using Symfony3 with the KnpGaufretteBundle to connect to an Amazon S3 bucket with the AWS S3 method outlined on their Github Readme aws_s3_adapter: key: "%aws_key%" secret_key: "%aws_secret%" region: …
Scott M
  • 417
  • 5
  • 16
1
vote
1 answer

Example on how to config google cloud storage with KnpGaufetteBundle

I am trying to configure a KnpGaufretteBundle to use Google Cloud Storage for storing my files. This is the config: ## definition of the GCS service app.google_cloud_storage.service: class: \Google_Service_Storage factory_class:…
Amine Jallouli
  • 3,919
  • 8
  • 36
  • 73
1
vote
1 answer

Is it possible to get S3 file size using Gaufrette?

I read this question so I know how to get the size without KnpGaufretteBundle but I'm wondering if there's a way to use it. I can't find anything on the Adapter classes. Check file size on S3 without downloading? Thanks ;)
ana-lu
  • 269
  • 1
  • 3
  • 12
1
vote
2 answers

Symfony Gaufrette create a copy of an image

I'm using a Symfony Gaufrette for storing images in a filesystem. It works fine when I store an image first time. But I also need to create a copy of the image after it was uploaded to the filesystem. Is there any way to do it? I use this function…
Olga Budnik
  • 1,143
  • 2
  • 8
  • 10
1
vote
1 answer

Gaufrette via FTP does not work correctly

Im using Gaufrette to fetch PDF files over FTP knp_gaufrette: adapters: invoice_ftp: ftp: host: ftp.localhost port: 21 filesystems: invoice: adapter: invoice_ftp And Im downloading the file with $url =…
Martin-
  • 876
  • 2
  • 13
  • 30
1
vote
0 answers

uncaught AWS SDK S3 error 500 in Symfony2 and Twig using Liip Imagine and knp gaufrette bundles

I have a working configuration in my Symfony2 app using Liip Imagine and knp gaufrette bundles to retrieve assets from AWS S3 using the AWS SDK version 2. This normally works fine but occasionally I get uncaught error 500 messages. These come in two…
Patrick
  • 358
  • 6
  • 20
1
vote
1 answer

LiipImageBundle & KNP Gaufrette bundle failing to resolve s3 image path?

I am using LiipImageBundle & KNP Gaufrette bundle to resize & load images from s3. It was all working before but suddenly it stopped working. There are no bundle version upgrades. Below is my configuration, liip_imagine: cache: aws_s3_images …
vishal
  • 3,993
  • 14
  • 59
  • 102
1
vote
1 answer

GuafretteBundle with Aws SDK2

I'm trying to use Gaufrette with Aws SDK2, and I'm getting the following error on a cache:clear after configuring: [Aws\Common\Exception\InvalidArgumentException] The provided signature value is not an instance of…
jspizziri
  • 793
  • 1
  • 9
  • 24
1
vote
1 answer

How to format an image tag within a template when using streams with LiipImagineBundle

If I configure LiipImagineBundle to use a stream data loader, How do I then craft an image tag to use that data loader within a template? Updated Config knp_gaufrette: adapters: image_storage: amazon_s3: amazon_s3_id:…
codecowboy
  • 9,835
  • 18
  • 79
  • 134
1
vote
1 answer

Amazon multi-part upload using Gaufrette bundle

Is there a way to use a Gaufrette file system object for multi-part uploading if we have an Amazon S3 adapter. I read something about the streamWrapper but I don't know if that's the way to go for it and if it's working with S3 adapeter or not.
MKoosej
  • 3,405
  • 3
  • 21
  • 29
0
votes
2 answers

Retrieving public path using KnpGaufretteBundle with GoogleCloudStorage adapter

After setting up the KnpGaufretteBundle with GoogleCloudStorage adapter, I am able to write files in the Google Cloud Storage. But I have no clue on how to retrieve the public access link to that file (image, in this case). Here is an example of the…
Vlad Dogarescu
  • 153
  • 1
  • 11
0
votes
1 answer

Gaufrette list ftp files

I use KnpGaufretteBundle to connect with amazons3 / wasabi , now need add ftp. for cloud i get list of files $uploadCloud = $this->container->get('gaufrette.product_uploads_cloud_fs_filesystem')->listKeys(); now try this for ftp $uploadCloud =…
Developer
  • 2,731
  • 2
  • 41
  • 71
0
votes
2 answers

Upload big file stop at 1GB gaufrette phpseclinb

I'm trying simple copy files between server sftp using gaufrette and phpseclib. Local adapter server no problem sends more than 1GB. If i am trying send remote always stops at 1GB logs look like 00000fe0 …
marqs
  • 33
  • 4
0
votes
0 answers

Is it possible to delete a Gaufrette directory with all it's contents?

Whenever I call this code, a warning is given: Warning: rmdir(/path/to/assets/photo-albums/example): Directory not empty The reason is quite obvious. there are still pictures in there. In Doctrine they will be removed by cacade…
murtho
  • 991
  • 1
  • 17
  • 38