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
9
votes
1 answer

Using Gaufrette Stream Wrappers with AsseticBundle

I'm trying to use a Gaufrette Stream Wrapper to tell the AsseticBundle where to dump the project assets but I can't make it recognize them. This is how the knp_gaufrette section of my config_dev.yml looks like: knp_gaufrette: adapters: …
Marcel Hernandez
  • 1,371
  • 13
  • 22
7
votes
2 answers

AmazonS3 + KnpGaufretteBundle how to set public acl for a file?

I'm using the KnpGaufretteBundle to store pictures on Amazon S3, I can easily create a file with the following code : public function s3CreatFileAction(Request $request) { $filesystem =…
Ousmane
  • 2,673
  • 3
  • 30
  • 37
5
votes
1 answer

Symfony Audio Stream with Gaufrette

I am using KnpGaufretteBundle to store audio files. I am able to download a given file to the client like this: $filename = "Somefilename.mp3"; $fs = $this->filesystemMap->get('media_fs'); $file = $fs->read($filename); if($file){ …
jspizziri
  • 793
  • 1
  • 9
  • 24
4
votes
1 answer

Error when attempting upload to S3 with gaufrette

I'm trying to use the KNPLabs gaufrette bundle to upload image files to S3. I'm getting the following error when I debug the response from S3: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all…
codecowboy
  • 9,835
  • 18
  • 79
  • 134
3
votes
1 answer

How to show a link in twig to a file uploaded with gaufrette?

I would like to show a PDF file that have been uploaded with gaufrette. I get the URI from Doctrine ("wine_information/1-wine_information.pdf"). But the root directory can be different if it is on local or remote (Amazon s3). I tried to use the…
3
votes
2 answers

S3 Bucket Policy by domain returning 403 Forbidden for object requests in Symfony app with Varnish

I have a PHP+Symfony web app behind Varnish with sites assets (i.e. images, video) stored in an S3 bucket. I want to restrict access to these assets using an s3 bucket policy by referrer. The policy I applied to the bucket is (with identifying info…
Forer
  • 1,045
  • 1
  • 9
  • 32
3
votes
1 answer

Symfony Gaufrette - Download or Read Image from filesystem and show it in twig

my question is simple. I use Symfony framework and Gaufrette filesystem (KnpGaufretteBundle) and I allready saved files (images) in filesystem. Now I want show that images in twig. In controller I get the file: $image =…
user1336101
  • 441
  • 1
  • 7
  • 17
3
votes
1 answer

Circular reference when using VichUploader with KnpGaufrette and Doctrine in Symfony2

I tried to use the following setup in my Symfony2 project: VichUploader Bundle for handling file uploads KnpGaufrette Bundle which should be used by VichUploader as a storage adapter Problem: As soon as i try to use the Gaufrette storage adapter…
delbertooo
  • 840
  • 5
  • 10
3
votes
2 answers

Symfony 2: How do I manually assign a file to an entity which has been configured to use VichUploaderBundle to handle file uploads

I have set up the VichUploaderBundle to facilitate the upload of a profile image for my User entity. I am using the GaufretteStorage option, configured to use the local filesystem and all is working fine when users upload an image via a form. I now…
Nada_Surf
  • 616
  • 1
  • 7
  • 19
2
votes
0 answers

Thumbnail some S3 images with LiipImagineBundle

I'm trying to do thumbnails of already uploaded images on AWS S3. I followed theses steps : https://io.serendipityhq.com/experience/how-to-use-liipimaginebundle-to-manage-thumbnails-through-amazon-s3/ But I still have something that do not work…
Murtack
  • 21
  • 1
2
votes
0 answers

LiipImagineBundle + KNPGaufrette + VichUploaderBundle + Amazon S3 can't generate thumbnails on S3

When trying to use LiipImagineBundle + VichUploaderBundle and Amazon S3, I'm encountering a weird issue. When I upload a file via my Symfony form (using the VichFileType form field), the file is successfully created on Amazon S3 (via Gaufrette).…
2
votes
2 answers

How to Use Gaufrette and Symfony 3.0

I have an issue from figuring out how to use the Symfony 3.0 with Gaufete in order to Upload into an s3 bucket. According to the documentation: https://github.com/KnpLabs/KnpGaufretteBundle I have set the config.yml: knp_gaufrette: adapters: …
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
2
votes
1 answer

how to upload files to Google Cloud Storage with symfony / gauferette / VichUploaderBundle

Good morning, I am uploading my files locally through VichUploaderBundle. Every thing works perfectly. Now I want no more store my files locally: I want to store them on Google Cloud Storage. I found that KnpGaufretteBundle could be used for storing…
2
votes
1 answer

Error retrieving credentials from the instance profile metadata server. Network unreachable

I have the following adapter and service configured: knp_gaufrette: adapters: sc_documents: aws_s3: service_id: sc.aws_s3.client bucket_name: HIDDEN options: …
Spas Bobchev
  • 104
  • 11
2
votes
1 answer

Unable to check if Amazon s3 bucket exists using Gaufrette with Symfony2

Getting this error when trying to upload a file to my bucket using VichUploader, Gaufrette and the AWS SDK v2 on a Symfony2 web app. Sounds like a problem with the API calls. It's giving me a Denied Access (Error 500 Interal Server Error) Can…
1
2 3 4